Mockery Version
1.6.12
PHP Version
PHP 8.2
Issue Description
As per the title - if you create an interface with a method that has a static return type, Mockery fails.
Steps to Reproduce
- Create an interface
- Add a method that has a static return type
- Run test
Expected Behavior
The method with the static return type should be mockable.
Actual Behavior
Mockery throws an exception:
syntax error, unexpected token "static", expecting identifier
at /tmp/MockeryVc3BMx:1
➜ 1▕ <?php class static {}
1 /tmp/MockeryVc3BMx:1
2 app/Modules/Forms/Formables/RequestToFieldValues.test.php:24
Exception or Error
Full error is above.
Additional Information
No response