diff --git a/src/Symfony/Component/PropertyInfo/Extractor/PhpDocExtractor.php b/src/Symfony/Component/PropertyInfo/Extractor/PhpDocExtractor.php index b1f323c0bd..e60a623985 100644 --- a/src/Symfony/Component/PropertyInfo/Extractor/PhpDocExtractor.php +++ b/src/Symfony/Component/PropertyInfo/Extractor/PhpDocExtractor.php @@ -208,7 +208,7 @@ class PhpDocExtractor implements PropertyDescriptionExtractorInterface, Property // Use a ReflectionProperty instead of $class to get the parent class if applicable try { $reflectionProperty = new \ReflectionProperty($class, $property); - } catch (\ReflectionException $reflectionException) { + } catch (\ReflectionException $e) { return; } @@ -260,7 +260,7 @@ class PhpDocExtractor implements PropertyDescriptionExtractorInterface, Property ) { break; } - } catch (\ReflectionException $reflectionException) { + } catch (\ReflectionException $e) { // Try the next prefix if the method doesn't exist } } diff --git a/src/Symfony/Component/PropertyInfo/Extractor/ReflectionExtractor.php b/src/Symfony/Component/PropertyInfo/Extractor/ReflectionExtractor.php index 1d3d3a2083..1bf56b9109 100644 --- a/src/Symfony/Component/PropertyInfo/Extractor/ReflectionExtractor.php +++ b/src/Symfony/Component/PropertyInfo/Extractor/ReflectionExtractor.php @@ -51,7 +51,7 @@ class ReflectionExtractor implements PropertyListExtractorInterface, PropertyTyp { try { $reflectionClass = new \ReflectionClass($class); - } catch (\ReflectionException $reflectionException) { + } catch (\ReflectionException $e) { return; } @@ -261,7 +261,7 @@ class ReflectionExtractor implements PropertyListExtractorInterface, PropertyTyp $reflectionProperty = new \ReflectionProperty($class, $property); return $reflectionProperty->isPublic(); - } catch (\ReflectionException $reflectionExcetion) { + } catch (\ReflectionException $e) { // Return false if the property doesn't exist } @@ -290,7 +290,7 @@ class ReflectionExtractor implements PropertyListExtractorInterface, PropertyTyp if (0 === $reflectionMethod->getNumberOfRequiredParameters()) { return array($reflectionMethod, $prefix); } - } catch (\ReflectionException $reflectionException) { + } catch (\ReflectionException $e) { // Return null if the property doesn't exist } } @@ -319,7 +319,7 @@ class ReflectionExtractor implements PropertyListExtractorInterface, PropertyTyp if ($reflectionMethod->getNumberOfParameters() >= 1) { return array($reflectionMethod, $prefix); } - } catch (\ReflectionException $reflectionException) { + } catch (\ReflectionException $e) { // Try the next prefix if the method doesn't exist } }