Skip to content

Commit 14cd7fc

Browse files
committed
feat: Add polyfill for static $latestResponse property in TestCase for compatibility with older Orchestra Testbench versions
1 parent 210f6c3 commit 14cd7fc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/TestCase.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323

2424
abstract class TestCase extends Orchestra
2525
{
26+
// Polyfill for older Orchestra Testbench versions in prefer-lowest CI matrix
27+
// that expect a static $latestResponse property on the base TestCase.
28+
// Newer versions manage this internally; declaring it here is harmless.
29+
public static $latestResponse;
30+
2631
/** @var \Spatie\Permission\Tests\TestModels\User */
2732
protected $testUser;
2833

0 commit comments

Comments
 (0)