-
-
Notifications
You must be signed in to change notification settings - Fork 698
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
[CodingStyle] Improve unspread array #5120
Conversation
{ | ||
public function go() | ||
{ | ||
$this->run('John', [1, 2, 3, 4, 5]); |
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.
@samsonasik Hey, just FYI, I had to update this rules to group items to an array like this.
It broke some code on Symplify.
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.
Thank you
/** | ||
* @param ClassMethod|MethodCall $node | ||
*/ | ||
private function isInVendor(Node $node): bool |
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.
@samsonasik Just a tip for next code. The /vendor
check can be done better by using NodeRepository
. It contains all the nodes from parsed project. So what is not there, is in vendor :)
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.
Thank you
93fc000
to
a980f96
Compare
rectorphp/rector-src@6aed089 [Php80] Skip when already implements Stringable and has string return type on StringableForToStringRector (#5120)
No description provided.