You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'Return value of ' . self::functionName($closure) . ' for $' . $name . ' must be of type object|string|int|float|bool|array|null, ' . $this->gettype($value) . ' returned'
415
-
);
416
-
} elseif ($valueinstanceof \Closure) {
407
+
if ($valueinstanceof \Closure) {
417
408
thrownew \TypeError(
418
409
'Return value of ' . self::functionName($closure) . ' for $' . $name . ' must not be of type Closure'
419
410
);
@@ -433,12 +424,11 @@ private function loadVariable(string $name, int $depth = 64) /*: object|string|i
$this->expectExceptionMessage('Return value of {closure:' . __FILE__ . ':' . $line . '}() for $http must be of type object|string|int|float|bool|array|null, resource returned');
$this->expectExceptionMessage('Return value of {closure:' . __FILE__ . ':' . $line . '}() for $X_FOO must be of type object|string|int|float|bool|array|null, resource returned');
0 commit comments