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
PHPStan type alias cache invalidation #10449
Comments
This bug report is missing a link to reproduction at phpstan.org/try. It will most likely be closed after manual review. |
Are you importing the alias in a different file? |
Exactly, I forgot to specify that! |
/cc @staabm Writing a failing test and fixing this is exactly up your alley 😊 |
@devnix I tried reproducing locally and did not succeed. could you create a full reproducer? as far as I can tell, the result cache does already take the imports into account: |
I'll try to reproduce it following this example: phpstan/phpstan-src@0fa6903 |
yep. its also fine if you setup a plain repo and I can convert it into the phpstan structure later on |
I've been able to reproduce it, I'll post a repo now: Grabacion.de.pantalla.desde.29-01-24.19.08.45.webm |
https://github.com/devnix/phpstan-reproducer-10449 this should do it 😄 |
I was able to reproduce. will look into it now |
Fixed phpstan/phpstan-src#2894 |
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. |
Bug report
I'm having the same problem as in #9622. I am not sure why the reproducer is not failing, but this change does not invalidate the cache:
Code snippet that reproduces the problem
No response
Expected output
I would expect to invalidate the cache successfully
Did PHPStan help you today? Did it make you happy in any way?
I love that these little things enable me to type the return of my query bus in one place ❤️
The text was updated successfully, but these errors were encountered: