Skip to content

Commit e71b916

Browse files
Merge branch '4.4' into 5.2
* 4.4: CS fix
2 parents 49e1f32 + e0da4ab commit e71b916

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

DeprecationErrorHandler/Deprecation.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,11 @@ public function __construct($message, array $trace, $file)
121121
return;
122122
}
123123

124-
$test = $line['args'][0] ?? null;
124+
$test = isset($line['args'][0]) ? $line['args'][0] : null;
125125

126126
if (($test instanceof TestCase || $test instanceof TestSuite) && ('trigger_error' !== $trace[$i - 2]['function'] || isset($trace[$i - 2]['class']))) {
127-
$this->originClass = \get_class($line['args'][0]);
128-
$this->originMethod = $line['args'][0]->getName();
127+
$this->originClass = \get_class($test);
128+
$this->originMethod = $test->getName();
129129

130130
return;
131131
}

0 commit comments

Comments
 (0)