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

Skip to content

Commit fa47beb

Browse files
committed
Remove error-catcher dependency from Debug component
1 parent 2db1801 commit fa47beb

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@
1111

1212
namespace Symfony\Component\Debug\Exception;
1313

14-
use Symfony\Component\ErrorCatcher\Exception\FlattenException as BaseFlattenException;
1514
use Symfony\Component\HttpFoundation\Exception\RequestExceptionInterface;
1615
use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface;
1716

18-
@trigger_error(sprintf('The "%s" class is deprecated since Symfony 4.4, use "%s" instead.', FlattenException::class, BaseFlattenException::class), E_USER_DEPRECATED);
17+
@trigger_error(sprintf('The "%s" class is deprecated since Symfony 4.4, use "Symfony\Component\ErrorCatcher\Exception\FlattenException" instead.', FlattenException::class), E_USER_DEPRECATED);
1918

2019
/**
2120
* FlattenException wraps a PHP Error or Exception to be able to serialize it.

src/Symfony/Component/Debug/ExceptionHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
namespace Symfony\Component\Debug;
1313

14+
use Symfony\Component\Debug\Exception\FlattenException;
1415
use Symfony\Component\Debug\Exception\OutOfMemoryException;
15-
use Symfony\Component\ErrorCatcher\Exception\FlattenException;
1616
use Symfony\Component\HttpKernel\Debug\FileLinkFormatter;
1717

1818
/**

src/Symfony/Component/Debug/Tests/ExceptionHandlerTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ protected function tearDown()
3131
testHeader();
3232
}
3333

34+
/**
35+
* @group legacy
36+
*/
3437
public function testDebug()
3538
{
3639
$handler = new ExceptionHandler(false);

src/Symfony/Component/Debug/composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
],
1818
"require": {
1919
"php": "^7.1.3",
20-
"psr/log": "~1.0",
21-
"symfony/error-catcher": "^4.4|^5.0"
20+
"psr/log": "~1.0"
2221
},
2322
"conflict": {
2423
"symfony/http-kernel": "<3.4"

0 commit comments

Comments
 (0)