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
@@ -124,12 +112,7 @@ public static function register($handler = null, $replace = true)
124
112
125
113
$levels = -1;
126
114
127
-
if ($handlerIsNew = !$handlerinstanceof self) {
128
-
// @deprecated polymorphism, to be removed in 3.0
129
-
if (null !== $handler) {
130
-
$levels = $replace ? $handler : 0;
131
-
$replace = true;
132
-
}
115
+
if ($handlerIsNew = null === $handler) {
133
116
$handler = newstatic();
134
117
}
135
118
@@ -256,9 +239,6 @@ public function throwAt($levels, $replace = false)
256
239
}
257
240
$this->reRegister($prev | $this->loggedErrors);
258
241
259
-
// $this->displayErrors is @deprecated since version 2.6
260
-
$this->displayErrors = $this->thrownErrors;
261
-
262
242
return$prev;
263
243
}
264
244
@@ -566,91 +546,4 @@ protected function getFatalErrorHandlers()
566
546
newClassNotFoundFatalErrorHandler(),
567
547
);
568
548
}
569
-
570
-
/**
571
-
* Sets the level at which the conversion to Exception is done.
572
-
*
573
-
* @param int|null $level The level (null to use the error_reporting() value and 0 to disable)
574
-
*
575
-
* @deprecated since version 2.6, to be removed in 3.0. Use throwAt() instead.
576
-
*/
577
-
publicfunctionsetLevel($level)
578
-
{
579
-
trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the throwAt() method instead.', E_USER_DEPRECATED);
* @param int $displayErrors The display_errors flag value
589
-
*
590
-
* @deprecated since version 2.6, to be removed in 3.0. Use throwAt() instead.
591
-
*/
592
-
publicfunctionsetDisplayErrors($displayErrors)
593
-
{
594
-
trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the throwAt() method instead.', E_USER_DEPRECATED);
595
-
596
-
if ($displayErrors) {
597
-
$this->throwAt($this->displayErrors, true);
598
-
} else {
599
-
$displayErrors = $this->displayErrors;
600
-
$this->throwAt(0, true);
601
-
$this->displayErrors = $displayErrors;
602
-
}
603
-
}
604
-
605
-
/**
606
-
* Sets a logger for the given channel.
607
-
*
608
-
* @param LoggerInterface $logger A logger interface
609
-
* @param string $channel The channel associated with the logger (deprecation, emergency or scream)
610
-
*
611
-
* @deprecated since version 2.6, to be removed in 3.0. Use setLoggers() or setDefaultLogger() instead.
trigger_error('The '.__METHOD__.' static method is deprecated since version 2.6 and will be removed in 3.0. Use the setLoggers() or setDefaultLogger() methods instead.', E_USER_DEPRECATED);
$this->handleError(E_USER_DEPRECATED, 'The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the handleError() method instead.', __FILE__, __LINE__, array());
* @deprecated since version 2.6, to be removed in 3.0. Use handleFatalError() instead.
649
-
*/
650
-
publicfunctionhandleFatal()
651
-
{
652
-
trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the handleFatalError() method instead.', E_USER_DEPRECATED);
0 commit comments