fix: missing != and !== on new toUseStrictEquality arch expectation

This commit is contained in:
Nuno Maduro
2024-09-23 14:08:21 +01:00
parent a55da85dd2
commit 432ff221c6
6 changed files with 15 additions and 7 deletions

View File

@ -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.');
}