Skip to content

Commit 4c5ce34

Browse files
committed
Merge branch '6.0' into 6.1
* 6.0: [Filesystem] filesystem > readlink: remove function declaration
2 parents 740aee3 + b6c311d commit 4c5ce34

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

components/filesystem.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -219,17 +219,17 @@ systems (unlike PHP's :phpfunction:`readlink` function)::
219219
// returns its absolute fully resolved final version of the target (if there are nested links, they are resolved)
220220
$filesystem->readlink('/path/to/link', true);
221221

222-
Its behavior is the following::
223-
224-
public function readlink(string $path, bool $canonicalize = false): ?string
222+
Its behavior is the following:
225223

226224
* When ``$canonicalize`` is ``false``:
227-
* if ``$path`` does not exist or is not a link, it returns ``null``.
228-
* if ``$path`` is a link, it returns the next direct target of the link without considering the existence of the target.
225+
226+
* if ``$path`` does not exist or is not a link, it returns ``null``.
227+
* if ``$path`` is a link, it returns the next direct target of the link without considering the existence of the target.
229228

230229
* When ``$canonicalize`` is ``true``:
231-
* if ``$path`` does not exist, it returns null.
232-
* if ``$path`` exists, it returns its absolute fully resolved final version.
230+
231+
* if ``$path`` does not exist, it returns null.
232+
* if ``$path`` exists, it returns its absolute fully resolved final version.
233233

234234
.. note::
235235

0 commit comments

Comments
 (0)