Commit 2057339
fix: use composer exec instead of castor to run PHPUnit and avoid .castor.stub.php generation
Replace 'castor phpunit' with direct 'composer exec -- phpunit-11' to prevent the auto-generation
of .castor.stub.php file which causes interface redeclaration errors in PHP 8.2-8.3:
'Cannot declare interface Psr\Cache\CacheItemInterface, because the name is already in use'
When Castor runs, it automatically generates .castor.stub.php for IDE support, which contains
stub definitions that conflict with real PSR interfaces from Composer dependencies.
By using composer exec directly, we avoid running Castor altogether and prevent the stub file
from being generated during test execution.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent b86b6fc commit 2057339
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| |||
0 commit comments