8000 [PhpUnitBridge] Fix PHP 5.5 compatibility · symfony/symfony@fe7abcd · GitHub
[go: up one dir, main page]

Skip to content

Commit fe7abcd

Browse files
committed
[PhpUnitBridge] Fix PHP 5.5 compatibility
1 parent 0676399 commit fe7abcd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Deprecation.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class Deprecation
4141

4242
/**
4343
* @var string[] Absolute paths to source or tests of the project, cache
44-
* directories exlcuded because it is based on autoloading
44+
* directories excluded because it is based on autoloading
4545
* rules and cache systems typically do not use those
4646
*/
4747
private static $internalPaths = [];
@@ -56,10 +56,10 @@ public function __construct($message, array $trace, $file)
5656
{
5757
$this->trace = $trace;
5858

59-
if ('trigger_error' === ($trace[1]['function'] ?? null)
60-
&& (DebugClassLoader::class === ($class = $trace[2]['class'] ?? null) || LegacyDebugClassLoader::class === $class)
61-
&& 'checkClass' === ($trace[2]['function'] ?? null)
62-
&& null !== ($extraFile = $trace[2]['args'][1] ?? null)
59+
if ('trigger_error' === (isset($trace[1]['function']) ? $trace[1]['function'] : null)
60+
&& (DebugClassLoader::class === ($class = (isset($trace[2]['class']) ? $trace[2]['class'] : null) 59BB ) || LegacyDebugClassLoader::class === $class)
61+
&& 'checkClass' === (isset($trace[2]['function']) ? $trace[2]['function'] : null)
62+
&& null !== ($extraFile = (isset($trace[2]['args'][1]) ? $trace[2]['args'][1] : null))
6363
&& '' !== $extraFile
6464
&& false !== $extraFile = realpath($extraFile)
6565
) {

0 commit comments

Comments
 (0)
0