mirror of
https://github.com/pestphp/pest.git
synced 2026-03-12 02:37:22 +01:00
use long exception variable name
This commit is contained in:
@ -33,12 +33,12 @@ final class Reflection
|
|||||||
$reflectionMethod->setAccessible(true);
|
$reflectionMethod->setAccessible(true);
|
||||||
|
|
||||||
return $reflectionMethod->invoke($object, ...$args);
|
return $reflectionMethod->invoke($object, ...$args);
|
||||||
} catch(ReflectionException $ex) {
|
} catch (ReflectionException $exception) {
|
||||||
if (method_exists($object, '__call')) {
|
if (method_exists($object, '__call')) {
|
||||||
return $object->__call($method, $args);
|
return $object->__call($method, $args);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw $ex;
|
throw $exception;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user