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
}, Nette\InvalidArgumentException::class, "Service '': Method Bad2::create() does not meet the requirements: is create(\$name), get(\$name), create*() or get*() and is non-static.");
87
+
}, Nette\InvalidArgumentException::class, "Service '': Method Bad2::create() does not meet the requirements: is create*(), get*() or get(\$name) and is non-static.");
88
88
89
89
90
90
Assert::exception(function () {
91
91
$def = newLocatorDefinition;
92
92
$def->setImplement(Bad3::class);
93
-
}, Nette\InvalidArgumentException::class, "Service '': Method Bad3::get() does not meet the requirements: is create(\$name), get(\$name), create*() or get*() and is non-static.");
93
+
}, Nette\InvalidArgumentException::class, "Service '': Method Bad3::get() does not meet the requirements: is create*(), get*() or get(\$name) and is non-static.");
94
94
95
95
96
96
Assert::exception(function () {
97
97
$def = newLocatorDefinition;
98
98
$def->setImplement(Bad4::class);
99
-
}, Nette\InvalidArgumentException::class, "Service '': Method Bad4::foo() does not meet the requirements: is create(\$name), get(\$name), create*() or get*() and is non-static.");
99
+
}, Nette\InvalidArgumentException::class, "Service '': Method Bad4::foo() does not meet the requirements: is create*(), get*() or get(\$name) and is non-static.");
100
100
101
101
102
102
Assert::exception(function () {
103
103
$def = newLocatorDefinition;
104
104
$def->setImplement(Bad5::class);
105
-
}, Nette\InvalidArgumentException::class, "Service '': Method Bad5::get() does not meet the requirements: is create(\$name), get(\$name), create*() or get*() and is non-static.");
105
+
}, Nette\InvalidArgumentException::class, "Service '': Method Bad5::get() does not meet the requirements: is create*(), get*() or get(\$name) and is non-static.");
106
106
107
107
108
108
Assert::exception(function () {
109
109
$def = newLocatorDefinition;
110
110
$def->setImplement(Bad6::class);
111
-
}, Nette\InvalidArgumentException::class, "Service '': Method Bad6::get() does not meet the requirements: is create(\$name), get(\$name), create*() or get*() and is non-static.");
111
+
}, Nette\InvalidArgumentException::class, "Service '': Method Bad6::get() does not meet the requirements: is create*(), get*() or get(\$name) and is non-static.");
112
112
113
113
114
114
Assert::noError(function () {
@@ -121,7 +121,7 @@ Assert::noError(function () {
121
121
122
122
Assert::noError(function () {
123
123
$def = newLocatorDefinition;
124
-
$def->setImplement(Good2::class);
124
+
@$def->setImplement(Good2::class);// create($name) is deprecated
0 commit comments