-
-
Notifications
You must be signed in to change notification settings - Fork 699
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
[TypeDeclaration] Error on iterable (phpstan > 0.12) #2537
Comments
Seems like you're working on that tonight, right ? :) #2534 |
Not sure if related thought. I've merged it now :) |
Indeed; I've updated the playground and the error remains. Let me know if you need any help to get it running (hopefully it's easy :) ) |
Thanks 👍 Link to failing Travis CI in that repository would be the best :) |
Not sure I could trigger the CI there at each update of Rector's repository though... But I could give you access to Travis for this repo so you could run the test ? |
No need for that. |
Done! I've added you as a collaborator on the repository too, so you hopefully have access to Travis and can restart the builds. |
Thank you, I'm looking into it now |
Thanks for the demo! I've discovered 2 more bugs thanks to it Let's see how this helps |
rectorphp/rector-src@21fc218 [Core] AbstractScopeAwareRector is ready to be used in custom rules (#2537)
While trying to debug the
type-declaration
set on my project, I created a small playground and managed to isolate the issue : https://github.com/gnutix/rector-playgroundRunning
./scripts/RUN
gives :I've also tried adding a test case, but it passed (and it shouldn't...) :
I've tried changing the docblock to
iterable<mixed>
,\Generator<string>
, etc. Some passed PhpStan, but none passed Rector.The text was updated successfully, but these errors were encountered: