Skip to content

Commit b556f2a

Browse files
Merge branch '5.2' into 5.x
* 5.2: CS fix
2 parents b050ba4 + e71b916 commit b556f2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DeprecationErrorHandler/Deprecation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ public function __construct($message, array $trace, $file)
124124
$test = $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)