Skip to content

Commit dd14099

Browse files
staabmsebastianbergmann
authored andcommitted
Don't calculate unnecessary information in debug_backtrace()
1 parent f0f94fd commit dd14099

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Framework/MockObject/MockBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ public function disableAutoReturnValueGeneration(): self
552552

553553
private function calledFromTestCase(): bool
554554
{
555-
$caller = debug_backtrace(limit: 3)[2];
555+
$caller = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, limit: 3)[2];
556556

557557
return isset($caller['class']) && $caller['class'] === TestCase::class;
558558
}

0 commit comments

Comments
 (0)