Skip to content

Commit ba81727

Browse files
committed
minor #17119 [Filesystem] Add type hints readlink() (mohamedGasmii)
This PR was merged into the 6.0 branch. Discussion ---------- [Filesystem] Add type hints readlink() Add type hints for readlink, return hints added in v6.0 <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- 2766d70 [Filesystem] Add type hints readlink()
2 parents f2569d6 + 2766d70 commit ba81727

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)