minor #32263 [ErrorCatcher] Remove all deprecated code (fancyweb)
This PR was merged into the 5.0-dev branch.
Discussion
----------
[ErrorCatcher] Remove all deprecated code
| Q | A
| ------------- | ---
| Branch? | master
| Bug fix? | no
| New feature? | no
| BC breaks? | yes
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | https://github.com/symfony/symfony/pull/32261#discussion_r298641842
| License | MIT
| Doc PR | -
Commits
-------
2891d3b506
[ErrorCatcher] Remove all deprecated code
This commit is contained in:
commit
c5715a384b
|
@ -1,6 +1,11 @@
|
||||||
CHANGELOG
|
CHANGELOG
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
5.0.0
|
||||||
|
-----
|
||||||
|
|
||||||
|
* removed `FlattenException::setTraceFromException()` in favor of `setTraceFromThrowable()`
|
||||||
|
|
||||||
4.4.0
|
4.4.0
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
|
|
@ -378,11 +378,6 @@ class ErrorHandler
|
||||||
*/
|
*/
|
||||||
public function handleError(int $type, string $message, string $file, int $line): bool
|
public function handleError(int $type, string $message, string $file, int $line): bool
|
||||||
{
|
{
|
||||||
// @deprecated to be removed in Symfony 5.0
|
|
||||||
if (\PHP_VERSION_ID >= 70300 && $message && '"' === $message[0] && 0 === strpos($message, '"continue') && preg_match('/^"continue(?: \d++)?" targeting switch is equivalent to "break(?: \d++)?"\. Did you mean to use "continue(?: \d++)?"\?$/', $message)) {
|
|
||||||
$type = E_DEPRECATED;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Level is the current error reporting level to manage silent error.
|
// Level is the current error reporting level to manage silent error.
|
||||||
$level = error_reporting();
|
$level = error_reporting();
|
||||||
$silenced = 0 === ($level & $type);
|
$silenced = 0 === ($level & $type);
|
||||||
|
|
|
@ -244,16 +244,6 @@ class FlattenException
|
||||||
return $this->trace;
|
return $this->trace;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated since 4.1, use {@see setTraceFromThrowable()} instead.
|
|
||||||
*/
|
|
||||||
public function setTraceFromException(\Exception $exception)
|
|
||||||
{
|
|
||||||
@trigger_error(sprintf('The "%s()" method is deprecated since Symfony 4.1, use "setTraceFromThrowable()" instead.', __METHOD__), E_USER_DEPRECATED);
|
|
||||||
|
|
||||||
$this->setTraceFromThrowable($exception);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setTraceFromThrowable(\Throwable $throwable)
|
public function setTraceFromThrowable(\Throwable $throwable)
|
||||||
{
|
{
|
||||||
$this->traceAsString = $throwable->getTraceAsString();
|
$this->traceAsString = $throwable->getTraceAsString();
|
||||||
|
|
Reference in New Issue