-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
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
Calling PHPStan\Mockery\Type\Expects::with() is not covered by backward compatibility promise. #33
Comments
Please post a piece of code that reproduces this problem. I'm not aware of anything in phpstan-phpunit that would be causing a similar problem. |
I'm sorry for not being clear. I saw a commit on This is my code: /**
* @var MockInterface&DraftRepository
*/
private MockInterface $draftRepository;
// ...
$this->draftRepository->expects('getActiveByUser')
->with($user)
->andReturn(new Draft()); |
In PHPUnit it was about something else - fixing a situation where PHPStan-specific code was marked as an error because it used something not covered by BC promise - a legit issue. In this case PHPStan is reporting normal analyzed code like that, which it shouldn't. I'm gonna look into it. |
I think I fixed it: 7cc74bf Please try phpstan-mockery 0.12.14 to see if it works. |
Seems to be solved. Thanks @ondrejmirtes 💙 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
When upgrading from phpstan/phpstan 0.12.88 to 0.12.89 I'm getting a lot of errors like this:
I see that a fix has been pushed for
phpstan-phpunit
. Should the same type of fix be done here as well?The text was updated successfully, but these errors were encountered: