Skip to content

Commit eeff712

Browse files
ondrejmirtesclaude
andcommitted
Use the anonymous class in the trait-caching E2E fixture
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CbZPnVnRJDLbnqmtD3sYSy
1 parent d45afbc commit eeff712

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

e2e/trait-caching/data/TestClassUsingTrait.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function doBar()
1515
return $this->doFoo();
1616
}
1717

18-
public function doBaz(): void
18+
public function doBaz(): \stdClass
1919
{
2020
$class = new class() {
2121

@@ -29,6 +29,8 @@ public function doBar()
2929
return $this->doFoo();
3030
}
3131
};
32+
33+
return $class->doBar();
3234
}
3335

3436
}

0 commit comments

Comments
 (0)