Skip to content

Conversation

phansys
Copy link
Contributor

@phansys phansys commented Sep 15, 2020

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tickets n/a
License MIT
Doc PR n/a

@phansys phansys force-pushed the cs_rules branch 2 times, most recently from 0c89e06 to 5dda0b6 Compare September 15, 2020 14:01
@phansys phansys changed the title Add "static_lambda" CS rule Apply "static_lambda" CS rule under src/ dir Sep 15, 2020
@soyuka
Copy link
Member

soyuka commented Nov 8, 2020

thoughts @api-platform/core-team ?

@alanpoulain
Copy link
Member

I'm OK for this. Is there any CS rule to add it automatically?

Copy link
Contributor

@vincentchalamon vincentchalamon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @alanpoulain, it would be perfect with a php-cs rule

@phansys
Copy link
Contributor Author

phansys commented Nov 8, 2020

Sorry for the delay. If the rule is added, there are some cases where the replacement is invalid (I think in cases where the function is used for binding purposes).
I've followed that approach at first, but I had to leave the tests/ directory out of this PR for that reason.

@soyuka
Copy link
Member

soyuka commented Nov 8, 2020

Please rebase then :) and we'll fix this on 2.5

@phansys phansys force-pushed the cs_rules branch 2 times, most recently from 5ac6ba0 to 587211e Compare November 9, 2020 02:48
@phansys phansys marked this pull request as ready for review November 9, 2020 12:13
@soyuka
Copy link
Member

soyuka commented Nov 9, 2020

Can you target 2.5 please ?

@phansys phansys changed the base branch from master to 2.5 November 10, 2020 02:17
@phansys
Copy link
Contributor Author

phansys commented Nov 10, 2020

Can you target 2.5 please ?

Done.

@vincentchalamon vincentchalamon self-requested a review November 10, 2020 08:23
@soyuka soyuka merged commit 51dfcd2 into api-platform:2.5 Nov 13, 2020
@soyuka
Copy link
Member

soyuka commented Nov 13, 2020

Thanks @phansys !

@phansys phansys deleted the cs_rules branch November 13, 2020 08:34
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.

4 participants