Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c5715a3

Browse files
committed
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 | #32261 (comment) | License | MIT | Doc PR | - Commits ------- 2891d3b [ErrorCatcher] Remove all deprecated code
2 parents 58d61dc + 2891d3b commit c5715a3

File tree

3 files changed

+5
-15
lines changed

3 files changed

+5
-15
lines changed

src/Symfony/Component/ErrorCatcher/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
5.0.0
5+
-----
6+
7+
* removed `FlattenException::setTraceFromException()` in favor of `setTraceFromThrowable()`
8+
49
4.4.0
510
-----
611

src/Symfony/Component/ErrorCatcher/ErrorHandler.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -378,11 +378,6 @@ private function reRegister($prev)
378378
*/
379379
public function handleError(int $type, string $message, string $file, int $line): bool
380380
{
381-
// @deprecated to be removed in Symfony 5.0
382-
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)) {
383-
$type = E_DEPRECATED;
384-
}
385-
386381
// Level is the current error reporting level to manage silent error.
387382
$level = error_reporting();
388383
$silenced = 0 === ($level & $type);

src/Symfony/Component/ErrorCatcher/Exception/FlattenException.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -244,16 +244,6 @@ public function getTrace()
244244
return $this->trace;
245245
}
246246

247-
/**
248-
* @deprecated since 4.1, use {@see setTraceFromThrowable()} instead.
249-
*/
250-
public function setTraceFromException(\Exception $exception)
251-
{
252-
@trigger_error(sprintf('The "%s()" method is deprecated since Symfony 4.1, use "setTraceFromThrowable()" instead.', __METHOD__), E_USER_DEPRECATED);
253-
254-
$this->setTraceFromThrowable($exception);
255-
}
256-
257247
public function setTraceFromThrowable(\Throwable $throwable)
258248
{
259249
$this->traceAsString = $throwable->getTraceAsString();

0 commit comments

Comments
 (0)