Skip to content

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 ondrejmirtes force-pushed the no-named-args-inheritance branch from 826f763 to 713b2a8 Compare June 7, 2022 12:10
@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 :)

@ondrejmirtes ondrejmirtes force-pushed the no-named-args-inheritance branch from 713b2a8 to 7bb0fc1 Compare June 7, 2022 12:12
@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

Development

Successfully merging this pull request may close these issues.

2 participants