Skip to content
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

Update Connection.phpstub #110

Merged
merged 1 commit into from
Jan 29, 2022
Merged

Update Connection.phpstub #110

merged 1 commit into from
Jan 29, 2022

Conversation

VincentLanglet
Copy link
Contributor

@orklah
Copy link
Collaborator

orklah commented Jan 29, 2022

Well, either this is a direct copy and our stubs should be dropped (at least for this version of doctrine) or there are still cases where this plugin is more precise than doctrine and I'm wondering if it's normal to loosen the types we have?

(Please take into account that I don't use doctrine, so maybe the fixes here are obviously right, but I have to ask :p)

@VincentLanglet
Copy link
Contributor Author

Well, either this is a direct copy and our stubs should be dropped (at least for this version of doctrine) or there are still cases where this plugin is more precise than doctrine and I'm wondering if it's normal to loosen the types we have?

(Please take into account that I don't use doctrine, so maybe the fixes here are obviously right, but I have to ask :p)

I don't really use those method, but recently got an error here: sonata-project/EntityAuditBundle#474

When the phpdoc of the plugin say int[]|string[] but the phpdoc of doctrine explicitly say null or Type values are allowed, I would prefer to believe doctrine than this plugin. Especially because our library always worked like this.

The only difference (and what should be the only goal here) between the stub and doctrine, is the psalm-taint annotation ; so we cannot remove the stub for now.

@orklah
Copy link
Collaborator

orklah commented Jan 29, 2022

Seems fine then :)

It makes sense given the recent feedback here too: #106 (comment)

@orklah orklah merged commit 52b058d into psalm:2.x Jan 29, 2022
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