Skip to content

Commit 2766d70

Browse files
[Filesystem] Add type hints readlink()
Add type hints for readlink, return hints added in v6.0
1 parent 3cf09e9 commit 2766d70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/filesystem.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ systems (unlike PHP's :phpfunction:`readlink` function)::
221221

222222
Its behavior is the following::
223223

224-
public function readlink($path, $canonicalize = false)
224+
public function readlink(string $path, bool $canonicalize = false): ?string
225225

226226
* When ``$canonicalize`` is ``false``:
227227
* if ``$path`` does not exist or is not a link, it returns ``null``.

0 commit comments

Comments
 (0)