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
if (isset(self::$finalConstants[$use][$constant->name])) {
636
-
$deprecations[] = sprintf('The "%s::%s" constant is considered final. You should not override it in "%s".', self::$finalConstants[$use][$constant->name], $constant->name, $class);
$deprecations[] = sprintf('The "%s::'.$msg.' is considered final. You should not override it in "%s".', self::${$type}[$use][$r->name], $r->name, $class);
647
+
}
637
648
}
638
-
}
639
649
640
-
if (!($doc = $this->parsePhpDoc($constant)) || !isset($doc['final'])) {
'The "Symfony\Component\ErrorHandler\Tests\Fixtures\FinalProperty\FinalProperty::$pub" property is considered final. You should not override it in "Symfony\Component\ErrorHandler\Tests\Fixtures\OverrideFinalProperty".',
417
+
'The "Symfony\Component\ErrorHandler\Tests\Fixtures\FinalProperty\FinalProperty::$prot" property is considered final. You should not override it in "Symfony\Component\ErrorHandler\Tests\Fixtures\OverrideFinalProperty".',
418
+
], $deprecations);
419
+
}
420
+
404
421
publicfunctiontestOverrideFinalConstant()
405
422
{
406
423
$deprecations = [];
407
424
set_error_handler(function ($type, $msg) use (&$deprecations) { $deprecations[] = $msg; });
0 commit comments