diff --git a/src/PantherTestCaseTrait.php b/src/PantherTestCaseTrait.php index 6fad0c38..fa0fcfd2 100644 --- a/src/PantherTestCaseTrait.php +++ b/src/PantherTestCaseTrait.php @@ -158,7 +158,7 @@ protected static function createPantherClient(array $options = [], array $kernel static::bootKernel($kernelOptions); } - if (\is_callable([self::class, 'getClient'])) { + if (\is_callable([self::class, 'getClient']) && (new \ReflectionMethod(self::class, 'getClient'))->isStatic()) { return self::getClient(self::$pantherClient); }