From 6e27c6d85d245fd9352ea9d5a28ff12f2b8d8fc4 Mon Sep 17 00:00:00 2001 From: Tom Witkowski Date: Sun, 21 Jun 2020 18:44:04 +0200 Subject: [PATCH] fix tye check --- src/Support/Reflection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Support/Reflection.php b/src/Support/Reflection.php index 79342e74..8b8e73ae 100644 --- a/src/Support/Reflection.php +++ b/src/Support/Reflection.php @@ -38,7 +38,7 @@ final class Reflection method_exists($object, '__call') || method_exists($object, '__callStatic') ) { - return call_user_func_array([$object, $method], $args); + return $object->{$method}(...$args); } throw $exception;