Skip to content

Do not specify a variable which is not a query builder #220

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

Merged
merged 2 commits into from
Oct 7, 2021

Conversation

VincentLanglet
Copy link
Contributor

Solve #219

@ondrejmirtes
Copy link
Member

Hi, this needs a test.

@VincentLanglet
Copy link
Contributor Author

Hi, this needs a test.

I had some trouble to write one but this is ok now.
Without my fix, the test is failing, I checked it.

@ondrejmirtes ondrejmirtes merged commit 3692144 into phpstan:master Oct 7, 2021
@ondrejmirtes
Copy link
Member

Makes sense, thank you!

@VincentLanglet
Copy link
Contributor Author

Thanks !
If you have also time to review #218 and make a release after, it will help me a lot ! (and now I have to work on phpstan/phpstan-symfony#199 to find a fix ^^)

@VincentLanglet VincentLanglet deleted the fixSpecify branch October 7, 2021 19:59
@ondrejmirtes
Copy link
Member

Next release is going to be out after PHPStan 1.0 is released which is still a few weeks away.

@VincentLanglet
Copy link
Contributor Author

Next release is going to be out after PHPStan 1.0 is released which is still a few weeks away.

I can still ignore the error I fixed in this PR, but the PR #218 is kinda blocking for me. Any recommendation in my situation ? Does requiring the dev-master branch of phpstan and the extensions could be stable enough to enjoy the recent bugfix without having too much issues ?

@ondrejmirtes
Copy link
Member

Does requiring the dev-master branch of phpstan and the extensions could be stable enough to enjoy the recent bugfix without having too much issues ?

I can't recommend that. What you should do instead is to use your own fork of phpstan-doctrine with the fix. And then switch back to the original once it's released.

@VincentLanglet
Copy link
Contributor Author

I can't recommend that. What you should do instead is to use your own fork of phpstan-doctrine with the fix. And then switch back to the original once it's released.

I thought about this solution, but since the current "state" of the repository is supporting the 1.0 version of phpstan https://github.com/phpstan/phpstan-doctrine/blob/master/composer.json#L10 ; I assumed it wouldn't work with the 0.12.99 version.

I'll try tomorrow to revert cf697be then.

@ondrejmirtes
Copy link
Member

You can cherry-pick your commit on top of the latest phpstan-doctrine 0.12.x release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants