Skip to content

Commit 705cc53

Browse files
Merge branch '4.4'
* 4.4: cs fix Fix return statements [TwigBridge] add missing dep Add type declarations to private DefaultChoiceListFactory methods Add false type to ChoiceListFactoryInterface::createView $label argument Update UPGRADE guide of 4.3 for EventDispatcher [SecurityBundle] display the correct class name on the deprecated notice
2 parents ccad9c8 + 3ad3f3d commit 705cc53

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
@@ -387,12 +387,12 @@ private function linkException(string $origin, string $target, string $linkType)
387387
public function readlink(string $path, bool $canonicalize = false)
388388
{
389389
if (!$canonicalize && !is_link($path)) {
390-
return;
390+
return null;
391391
}
392392

393393
if ($canonicalize) {
394394
if (!$this->exists($path)) {
395-
return;
395+
return null;
396396
}
397397

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

0 commit comments

Comments
 (0)