use long exception variable name

This commit is contained in:
Tom Witkowski
2020-06-21 13:08:06 +02:00
parent 323c5f211f
commit 0c04882389

View File

@ -33,12 +33,12 @@ final class Reflection
$reflectionMethod->setAccessible(true);
return $reflectionMethod->invoke($object, ...$args);
} catch(ReflectionException $ex) {
} catch (ReflectionException $exception) {
if (method_exists($object, '__call')) {
return $object->__call($method, $args);
}
throw $ex;
throw $exception;
}
}