Skip to content

Commit 7fc93e9

Browse files
committed
[Debug] Drop compatibility layers
1 parent 1126fa6 commit 7fc93e9

File tree

3 files changed

+1
-21
lines changed

3 files changed

+1
-21
lines changed

src/Symfony/Bridge/ProxyManager/Legacy/ProxiedMethodReturnExpression.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ public static function generate(string $returnedValueExpression, ?\ReflectionMet
5151
if ($functionLoader instanceof ClassLoader) {
5252
return $functionLoader;
5353
}
54-
if ($functionLoader instanceof \Symfony\Component\Debug\DebugClassLoader) {
55-
return $getComposerClassLoader($functionLoader->getClassLoader());
56-
}
5754
if ($functionLoader instanceof \Symfony\Component\ErrorHandler\DebugClassLoader) {
5855
return $getComposerClassLoader($functionLoader->getClassLoader());
5956
}

src/Symfony/Component/Console/Application.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@
4141
use Symfony\Component\Console\Output\ConsoleOutputInterface;
4242
use Symfony\Component\Console\Output\OutputInterface;
4343
use Symfony\Component\Console\Style\SymfonyStyle;
44-
use Symfony\Component\Debug\ErrorHandler as LegacyErrorHandler;
45-
use Symfony\Component\Debug\Exception\FatalThrowableError as LegacyFatalThrowableError;
4644
use Symfony\Component\ErrorHandler\ErrorHandler;
4745
use Symfony\Component\ErrorHandler\Exception\FatalThrowableError;
4846
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
@@ -124,7 +122,7 @@ public function run(InputInterface $input = null, OutputInterface $output = null
124122

125123
$renderException = function ($e) use ($output) {
126124
if (!$e instanceof \Exception) {
127-
$e = class_exists(FatalThrowableError::class) ? new FatalThrowableError($e) : (class_exists(LegacyFatalThrowableError::class) ? new LegacyFatalThrowableError($e) : new \ErrorException($e->getMessage(), $e->getCode(), E_ERROR, $e->getFile(), $e->getLine()));
125+
$e = class_exists(FatalThrowableError::class) ? new FatalThrowableError($e) : new \ErrorException($e->getMessage(), $e->getCode(), E_ERROR, $e->getFile(), $e->getLine());
128126
}
129127
if ($output instanceof ConsoleOutputInterface) {
130128
$this->renderException($e, $output->getErrorOutput());

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

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -364,18 +364,3 @@ public function getAsString()
364364
return rtrim($message);
365365
}
366366
}
367-
368-
namespace Symfony\Component\Debug\Exception;
369-
370-
if (!class_exists(FlattenException::class, false)) {
371-
class_alias(\Symfony\Component\ErrorRenderer\Exception\FlattenException::class, FlattenException::class);
372-
}
373-
374-
if (false) {
375-
/**
376-
* @deprecated since Symfony 4.4, use Symfony\Component\ErrorRenderer\Exception\FlattenException instead.
377-
*/
378-
class FlattenException extends \Symfony\Component\ErrorRenderer\Exception\FlattenException
379-
{
380-
}
381-
}

0 commit comments

Comments
 (0)