We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
debug_backtrace()
1 parent 29a81e4 commit 5a1705eCopy full SHA for 5a1705e
src/Event/Value/Test/TestMethodBuilder.php
@@ -54,7 +54,7 @@ public static function fromTestCase(TestCase $testCase): TestMethod
54
*/
55
public static function fromCallStack(): TestMethod
56
{
57
- foreach (debug_backtrace() as $frame) {
+ foreach (debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT | DEBUG_BACKTRACE_IGNORE_ARGS) as $frame) {
58
if (isset($frame['object']) && $frame['object'] instanceof TestCase) {
59
return $frame['object']->valueObjectForEvents();
60
}
0 commit comments