mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
fix: missing != and !== on new toUseStrictEquality arch expectation
This commit is contained in:
@ -26,7 +26,7 @@ final class Closure
|
||||
|
||||
$closure = BaseClosure::bind($closure, $newThis, $newScope);
|
||||
|
||||
if ($closure === null) {
|
||||
if (! $closure instanceof \Closure) {
|
||||
throw ShouldNotHappen::fromMessage('Could not bind closure.');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user