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
}, E_USER_DEPRECATED, 'The parameter $nullable2 in Test::methodNullable() should have a declared value in the configuration. Value NULL is currently used.');
50
+
}, Nette\DI\ServiceCreationException::class, 'Parameter $nullable2 in Test::methodNullable() has union type and no default value, so its value must be specified.');
51
51
52
52
53
53
Assert::exception(function () {
54
54
Resolver::autowireArguments(newReflectionMethod('Test', 'methodUnion'), [], function () {});
55
55
}, Nette\InvalidStateException::class, 'Parameter $self in Test::methodUnion() has union type and no default value, so its value must be specified.');
56
56
57
-
Assert::error(function () {
57
+
Assert::exception(function () {
58
58
Resolver::autowireArguments(newReflectionMethod(Test::class, 'methodUnionNullable'), [], function () {});
59
-
}, E_USER_DEPRECATED, 'The parameter $nullable in Test::methodUnionNullable() should have a declared value in the configuration. Value NULL is currently used.');
59
+
}, Nette\DI\ServiceCreationException::class, 'Parameter $nullable in Test::methodUnionNullable() has union type and no default value, so its value must be specified.');
0 commit comments