mirror of
https://github.com/pestphp/pest.git
synced 2026-04-21 14:37:29 +02:00
Merge branch '2.x' into 3.x
This commit is contained in:
@ -296,7 +296,7 @@ trait Testable
|
||||
return $arguments;
|
||||
}
|
||||
|
||||
if (in_array($testParameterTypes[0], [Closure::class, 'callable'])) {
|
||||
if (isset($testParameterTypes[0]) && in_array($testParameterTypes[0], [Closure::class, 'callable'])) {
|
||||
return $arguments;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user