Skip to content

Commit 4a30d9a

Browse files
committed
minor #17123 [Filesystem] Fix check path methods (mohamedGasmii)
This PR was merged into the 5.4 branch. Discussion ---------- [Filesystem] Fix check path methods Fix check for relative/absolute path. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- f0353b8 [Filesystem] Fix check path methods
2 parents e301f8b + f0353b8 commit 4a30d9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/filesystem.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,8 @@ as necessary::
411411
echo Path::makeRelative('/var/www/project/config/config.yaml', '/var/www/project/uploads');
412412
// => ../config/config.yaml
413413

414-
Use :method:`Symfony\\Component\\Filesystem\\Path::makeAbsolute` and
415-
:method:`Symfony\\Component\\Filesystem\\Path::makeRelative` to check whether a
414+
Use :method:`Symfony\\Component\\Filesystem\\Path::isAbsolute` and
415+
:method:`Symfony\\Component\\Filesystem\\Path::isRelative` to check whether a
416416
path is absolute or relative::
417417

418418
Path::isAbsolute('C:\Programs\PHP\php.ini')

0 commit comments

Comments
 (0)