We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I'm getting an issue similar to #1149 when using the true return type in PHP 8.2. the error produced the following in terminal:
true
PHP Fatal error: Cannot use 'true' as class name as it is reserved in /private/var/folders/s6/mt33vjsn36q1jkdprflfh5cr0000gn/T/MockeryKoER9D on line 1
I have a method similar to the following:
<?php class Example { public function testMethod(): true { // ... } }
And in test I am doing the following:
<?php // ... $mock = Mockery::mock(Example::class); $mock->shouldHaveReceived("testMethod")->once(); // ...
Removing the true return type allows the test to pass with the same test code
The text was updated successfully, but these errors were encountered:
Hey @aj-norman,
This issue has been resolved via #1271
Thank you for your contribution.
Sorry, something went wrong.
Thanks for fixing this
ghostwriter
No branches or pull requests
Hi,
I'm getting an issue similar to #1149 when using the
true
return type in PHP 8.2. the error produced the following in terminal:Env details:
Steps to reproduce:
I have a method similar to the following:
And in test I am doing the following:
Removing the
true
return type allows the test to pass with the same test codeThe text was updated successfully, but these errors were encountered: