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: src/Symfony/Component/Debug/DebugClassLoader.php
+21-24Lines changed: 21 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -174,33 +174,30 @@ public function loadClass($class)
174
174
@trigger_error(sprintf('The %s class is considered final%s. It may change without further notice as of its next major version. You should not extend it from %s.', $parent, self::$final[$parent], $name), E_USER_DEPRECATED);
175
175
}
176
176
177
-
// Only check final methods if the class has a parent
@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, $methodName, $finalMethod, $name), E_USER_DEPRECATED);
203
-
}
190
+
@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.', $prototype->class, $method->name, self::$finalMethods[$parent][$method->name], $name), E_USER_DEPRECATED);
191
+
}
192
+
193
+
$doc = $method->getDocComment();
194
+
// No @final annotation
195
+
if (false === $doc || false === strpos($doc, '@final')) {
196
+
continue;
197
+
}
198
+
199
+
if (preg_match('#\n\s+\* @final(?:( .+?)\.?)?\r?\n\s+\*(?: @|/$)#s', $doc, $notice)) {
0 commit comments