mirror of
https://github.com/pestphp/pest.git
synced 2026-04-21 14:37:29 +02:00
chore: code refactor
This commit is contained in:
@ -191,7 +191,7 @@ final class TestCaseFactory
|
||||
|
||||
if (
|
||||
$method->closure instanceof \Closure &&
|
||||
(new \ReflectionFunction($method->closure))->isStatic()
|
||||
new \ReflectionFunction($method->closure)->isStatic()
|
||||
) {
|
||||
|
||||
throw new TestClosureMustNotBeStatic($method);
|
||||
|
||||
Reference in New Issue
Block a user