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
@@ -256,12 +258,21 @@ private function checkClass($class, $file = null)
256
258
@trigger_error(sprintf('The "%s::%s()" method is considered final%s. It may change without further notice as of its next major version. You should not extend it from "%s".', $declaringClass, $method->name, $message, $name), E_USER_DEPRECATED);
257
259
}
258
260
259
-
foreach ($parentAndTraitsas$use) {
260
-
if (isset(self::$internalMethods[$use][$method->name])) {
@trigger_error(sprintf('The "%s::%s()" method is considered internal%s. It may change without further notice. You should not extend it from "%s".', $declaringClass, $method->name, $message, $name), E_USER_DEPRECATED);
264
-
}
261
+
if (isset(self::$internalMethods[$name][$method->name])) {
@trigger_error(sprintf('The "%s::%s()" method is considered internal%s. It may change without further notice. You should not extend it from "%s".', $declaringClass, $method->name, $message, $name), E_USER_DEPRECATED);
265
+
}
266
+
}
267
+
268
+
if (isset(self::$annotatedParameters[$name][$method->name])) {
self::$annotatedParameters[$name][$method->name][$parameterName] = sprintf('The method "%s::%s" defines the parameter `%s`: it may be added to its signature without further notice as of its next major version.', $name, $method->name, $parameterSignature).' You should update the signature of "%s::%s".';
'The "Symfony\Component\Debug\Tests\Fixtures\InternalTrait2::internalMethod()" method is considered internal. It may change without further notice. You should not extend it from "Test\Symfony\Component\Debug\Tests\ExtendsInternals".',
$this->assertSame(array('The method "Symfony\Component\Debug\Tests\Fixtures\ClassWithAnnotatedParameters::quzMethod" defines the parameter `Quz $quz`: it may be added to its signature without further notice as of its next major version. You should update the signature of "Test\Symfony\Component\Debug\Tests\SubClassWithAnnotatedParameters::quzMethod".'), $deprecations);
291
+
}
278
292
}
279
293
280
294
class ClassLoader
@@ -328,6 +342,12 @@ public function internalMethod() { }
0 commit comments