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/ContainerBuilder.autowiring.novalue.phpt
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,8 @@ Assert::exception(function () {
24
24
$builder = newDI\ContainerBuilder;
25
25
$builder->addDefinition('foo')->setType('Foo');
26
26
$container = createContainer($builder);
27
-
}, Nette\DI\ServiceCreationException::class, "Service 'foo' (type of Foo): Parameter \$x in __construct() has no class type hint and no default value, so its value must be specified.");
27
+
}, Nette\DI\ServiceCreationException::class, "(Service 'foo' of type Foo)
28
+
Parameter \$x in __construct() has no class type hint or default value, so its value must be specified.");
28
29
29
30
30
31
class Bar
@@ -38,7 +39,8 @@ Assert::exception(function () {
38
39
$builder = newDI\ContainerBuilder;
39
40
$builder->addDefinition('foo')->setType('Bar');
40
41
$container = createContainer($builder);
41
-
}, Nette\DI\ServiceCreationException::class, "Service 'foo' (type of Bar): Parameter \$x in __construct() has no class type hint and no default value, so its value must be specified.");
42
+
}, Nette\DI\ServiceCreationException::class, "(Service 'foo' of type Bar)
43
+
Parameter \$x in __construct() has no class type hint or default value, so its value must be specified.");
0 commit comments