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

Add @no-named-arguments check to MethodSignatureRule #1400

Closed
wants to merge 1 commit into from

Conversation

jrmajor
Copy link
Contributor

@jrmajor jrmajor commented Jun 6, 2022

Add a check preventing a child method from declaring @no-named-arguments when the parent method does not.

@ondrejmirtes
Copy link
Member

FYI @jrmajor I've also seen @no-named-arguments declared not just above a method, but also above a class.

@jrmajor
Copy link
Contributor Author

jrmajor commented Jun 7, 2022

@ondrejmirtes I've seen that in PHPUnit too, but last time I've checked Psalm didn't support that, so I've decided to get it working with methods first :)

BTW, I would appreciate you pointing me in the right direction with that PR...

@ondrejmirtes
Copy link
Member

I'll rebase and adjust this PR once I merge #1403.

@ondrejmirtes
Copy link
Member

ondrejmirtes commented Jun 7, 2022

Alright, did some modifications: 7bb0fc1

Can you please finish the PR so that the build is green? Thanks :)

@jrmajor jrmajor force-pushed the no-named-args-inheritance branch 2 times, most recently from 93d837b to 812eae3 Compare June 19, 2022 18:54
@jrmajor jrmajor force-pushed the no-named-args-inheritance branch 2 times, most recently from 7e58d45 to 5a19c72 Compare June 30, 2022 21:11
@jrmajor jrmajor changed the base branch from 1.7.x to 1.8.x June 30, 2022 21:11
Add a check preventing a child method from declaring `@no-named-arguments` when parent method does not

Co-authored-by: Ondrej Mirtes <ondrej@mirtes.cz>
@jrmajor jrmajor force-pushed the no-named-args-inheritance branch from 5a19c72 to 9552158 Compare July 1, 2022 11:29
@jrmajor
Copy link
Contributor Author

jrmajor commented Jul 1, 2022

@ondrejmirtes I'm sorry, I don't know why these tests are failing (these aren't new ones, I've added them in the previous PR, in 598bda2).

@ondrejmirtes
Copy link
Member

Hi, I'm cleaning up old and stale PRs. Please send a new PR if you're still interested, thanks.

@jrmajor jrmajor deleted the no-named-args-inheritance branch November 4, 2022 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants