Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7fc93e9

Browse files
committed
[Debug] Drop compatibility layers
1 parent1126fa6 commit7fc93e9

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 ($functionLoaderinstanceof ClassLoader) {
5252
return$functionLoader;
5353
}
54-
if ($functionLoaderinstanceof \Symfony\Component\Debug\DebugClassLoader) {
55-
return$getComposerClassLoader($functionLoader->getClassLoader());
56-
}
5754
if ($functionLoaderinstanceof \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
useSymfony\Component\Console\Output\ConsoleOutputInterface;
4242
useSymfony\Component\Console\Output\OutputInterface;
4343
useSymfony\Component\Console\Style\SymfonyStyle;
44-
useSymfony\Component\Debug\ErrorHandlerasLegacyErrorHandler;
45-
useSymfony\Component\Debug\Exception\FatalThrowableErrorasLegacyFatalThrowableError;
4644
useSymfony\Component\ErrorHandler\ErrorHandler;
4745
useSymfony\Component\ErrorHandler\Exception\FatalThrowableError;
4846
useSymfony\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 (!$einstanceof \Exception) {
127-
$e =class_exists(FatalThrowableError::class) ?newFatalThrowableError($e) :(class_exists(LegacyFatalThrowableError::class) ?newLegacyFatalThrowableError($e) :new\ErrorException($e->getMessage(),$e->getCode(),E_ERROR,$e->getFile(),$e->getLine()));
125+
$e =class_exists(FatalThrowableError::class) ?newFatalThrowableError($e) :new \ErrorException($e->getMessage(),$e->getCode(),E_ERROR,$e->getFile(),$e->getLine());
128126
}
129127
if ($outputinstanceof 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
returnrtrim($message);
365365
}
366366
}
367-
368-
namespaceSymfony\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 FlattenExceptionextends \Symfony\Component\ErrorRenderer\Exception\FlattenException
379-
{
380-
}
381-
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp