Skip to content

Commit 16988b0

Browse files
Merge branch '3.4' into 4.3
* 3.4: Fix return statements [TwigBridge] add missing dep Add false type to ChoiceListFactoryInterface::createView $label argument
2 parents e5c9fc2 + 10661ec commit 16988b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Filesystem.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,12 +414,12 @@ private function linkException($origin, $target, $linkType)
414414
public function readlink($path, $canonicalize = false)
415415
{
416416
if (!$canonicalize && !is_link($path)) {
417-
return;
417+
return null;
418418
}
419419

420420
if ($canonicalize) {
421421
if (!$this->exists($path)) {
422-
return;
422+
return null;
423423
}
424424

425425
if ('\\' === \DIRECTORY_SEPARATOR) {

0 commit comments

Comments
 (0)