From 1f31471ffef1ebb651d4c61ef5412595ab1ac36f Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Mon, 14 Jan 2019 09:43:48 +0100 Subject: [PATCH] remove return type hint for PHP 5 compatibility --- src/Symfony/Component/Debug/DebugClassLoader.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Component/Debug/DebugClassLoader.php b/src/Symfony/Component/Debug/DebugClassLoader.php index c5b78c90f294..88e4890ead7c 100644 --- a/src/Symfony/Component/Debug/DebugClassLoader.php +++ b/src/Symfony/Component/Debug/DebugClassLoader.php @@ -124,7 +124,10 @@ public static function disable() } } - public function findFile($class): ?string + /** + * @return string|null + */ + public function findFile($class) { return $this->isFinder ? $this->classLoader[0]->findFile($class) ?: null : null; }