| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 15 | public static function callMethodOnObject($object, string $method, array $args = []) |
||
| 16 | { |
||
| 17 | $classReflection = new ReflectionClass($object); |
||
| 18 | $methodReflection = $classReflection->getMethod($method); |
||
| 19 | $methodReflection->setAccessible(true); |
||
| 20 | |||
| 21 | return $methodReflection->invokeArgs($object, $args); |
||
| 22 | } |
||
| 23 | } |
||
| 24 |