Skip to content

Commit f0353b8

Browse files
[Filesystem] Fix check path methods
Fix check for relative/absolute path.
1 parent 869e9a1 commit f0353b8

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)