Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d27eab5

Browse files
committed
[Filesystem] Update some PHPDoc of the Path class
1 parent 92d183e commit d27eab5

File tree

1 file changed

+6
-6
lines changed
  • src/Symfony/Component/Filesystem

1 file changed

+6
-6
lines changed

src/Symfony/Component/Filesystem/Path.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -585,31 +585,31 @@ public static function isLocal(string $path): bool
585585
* into forward slashes.
586586
*
587587
* ```php
588-
* $basePath = Path::getLongestCommonBasePath([
588+
* $basePath = Path::getLongestCommonBasePath(
589589
* '/symfony/css/style.css',
590590
* '/symfony/css/..'
591-
* ]);
591+
* );
592592
* // => /symfony
593593
* ```
594594
*
595595
* The root is returned if no common base path can be found:
596596
*
597597
* ```php
598-
* $basePath = Path::getLongestCommonBasePath([
598+
* $basePath = Path::getLongestCommonBasePath(
599599
* '/symfony/css/style.css',
600600
* '/puli/css/..'
601-
* ]);
601+
* );
602602
* // => /
603603
* ```
604604
*
605605
* If the paths are located on different Windows partitions, `null` is
606606
* returned.
607607
*
608608
* ```php
609-
* $basePath = Path::getLongestCommonBasePath([
609+
* $basePath = Path::getLongestCommonBasePath(
610610
* 'C:/symfony/css/style.css',
611611
* 'D:/symfony/css/..'
612-
* ]);
612+
* );
613613
* // => null
614614
* ```
615615
*/

0 commit comments

Comments
 (0)