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
Copy file name to clipboardExpand all lines: tests/DI/Container.dynamic.php80.phpt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -19,4 +19,4 @@ $container = new Container;
19
19
Assert::exception(function () use ($container) {
20
20
@$container->addService('six', function (): stdClass|Closure {}); // @ triggers service should be defined as "imported"
21
21
$container->getService('six');
22
-
}, Nette\InvalidStateException::class, "Return type of factory is not expected to be nullable/union/intersection/built-in, 'stdClass|Closure' given.");
22
+
}, Nette\InvalidStateException::class, "Return type of closure is not expected to be nullable/union/intersection/built-in, 'stdClass|Closure' given.");
0 commit comments