[BUGFIX] PHP 7 Reflection error for default value
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Classes / Object / Container / ClassInfoFactory.php
index 26980ea..e8543a7 100644 (file)
@@ -65,9 +65,8 @@ class ClassInfoFactory
                 $info['dependency'] = $reflectionParameter->getClass()->getName();
             }
 
-            try {
+            if ($reflectionParameter->isDefaultValueAvailable()) {
                 $info['defaultValue'] = $reflectionParameter->getDefaultValue();
-            } catch (\ReflectionException $e) {
             }
 
             $result[] = $info;