-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Improve type inference for Plugin Managers #165
Conversation
Signed-off-by: George Steel <george@net-glue.co.uk>
Link: laminas/laminas-servicemanager#137 Signed-off-by: George Steel <george@net-glue.co.uk>
Signed-off-by: George Steel <george@net-glue.co.uk>
Signed-off-by: George Steel <george@net-glue.co.uk>
…lable Signed-off-by: George Steel <george@net-glue.co.uk>
… types can be returned by implemetors Signed-off-by: George Steel <george@net-glue.co.uk>
… elsewhere Signed-off-by: George Steel <george@net-glue.co.uk>
…d of the renderer Signed-off-by: George Steel <george@net-glue.co.uk>
Enables the removal of a number of assertions and var annotations Signed-off-by: George Steel <george@net-glue.co.uk>
Signed-off-by: George Steel <george@net-glue.co.uk>
Signed-off-by: George Steel <george@net-glue.co.uk>
phpcs is broken … conflicting with "phpstan/phpdoc-parser": ">=1.6" solves the issue - not sure if the problem is with the doc parser or slevomat - I'm guessing that this is going to affect anything using coding standard v2.3… |
…/console until 3.0 Signed-off-by: George Steel <george@net-glue.co.uk>
If we use
Potential regression in psalm? Perhaps we can reduce this into an example on https://psalm.dev/ and report it
Indeed, let's keep it out for now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's expand the baseline with the new issues: easier to discuss them on the psalm-baseline.xml
diff, than within comments in the PR
…xisting implementors such as those found in service manager - this silences unusual errors from psalm. Signed-off-by: George Steel <george@net-glue.co.uk>
@Ocramius - Current phpcs failures only happen on 7.4 - is it possible to run phpcs on 8.0 or 8.1 instead? It would save adding a conflict or pinning versions (slevomat or phpdoc-parser) |
We can drop PHP 7.4 support perhaps: I really don't mind on my end, but I'm fairly sure that more people need to have a say in this. |
This looks like a BC break in PHPStan-doc-parser perhaps? /cc @kukulich |
@Ocramius Yes, something like this: phpstan/phpdoc-parser#127 It's fixed in Slevomat CS ^8.0 |
Hmm, upgrading to next slevomat CS is most likely BC breaking all over the place, so that will take a lot of time 🤔 Oh well, renovate-bot should be able to help on that. |
Locking |
That's a viable solution for upstream, I suppose 🤔 |
I added a conflict for 1.6.x which fixed things locally for me - it's just remembering to remove it again in future… I'll add it to the patch |
I think we can update |
How do you change deps in the lock without modifying composer.json? |
|
…oding standard 7.2 and phpdoc-parser 1.6.x Signed-off-by: George Steel <george@net-glue.co.uk>
Thanks @Ocramius - I finally got there 🙄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢 this brings us forward!
Description
General type inference improvements
There's a couple of outstanding psalm issues that I think should probably be baselined.
stdClass
MethodSignatureMismatch
forMethod Laminas\ServiceManager\ServiceManager::has with return type '' is different to return type 'bool'
- This is really weird because bool is the return type all the way up the inheritance chain 🤷♂️