Skip to content

Commit

Permalink
[Filesystem] Update some PHPDoc of the Path class
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Feb 21, 2022
1 parent 0f0c4bf commit 808d280
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Path.php
Original file line number Diff line number Diff line change
Expand Up @@ -585,31 +585,31 @@ public static function isLocal(string $path): bool
* into forward slashes.
*
* ```php
* $basePath = Path::getLongestCommonBasePath([
* $basePath = Path::getLongestCommonBasePath(
* '/symfony/css/style.css',
* '/symfony/css/..'
* ]);
* );
* // => /symfony
* ```
*
* The root is returned if no common base path can be found:
*
* ```php
* $basePath = Path::getLongestCommonBasePath([
* $basePath = Path::getLongestCommonBasePath(
* '/symfony/css/style.css',
* '/puli/css/..'
* ]);
* );
* // => /
* ```
*
* If the paths are located on different Windows partitions, `null` is
* returned.
*
* ```php
* $basePath = Path::getLongestCommonBasePath([
* $basePath = Path::getLongestCommonBasePath(
* 'C:/symfony/css/style.css',
* 'D:/symfony/css/..'
* ]);
* );
* // => null
* ```
*/
Expand Down

0 comments on commit 808d280

Please sign in to comment.