-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
ArgumentsAnalyzer - pass by reference not analyzed correctly #3964
ArgumentsAnalyzer - pass by reference not analyzed correctly #3964
Conversation
|
||
try { | ||
$fixer->fix(new \SplFileInfo(__FILE__), $tokens); | ||
} catch (RequiredFixerConfigurationException $e) { |
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.
if this happen, we do not know that fixer works for empty file
by silencing the error, we lied to our-self that it does
@@ -126,6 +126,16 @@ public function provideArgumentsInfoCases() | |||
3 | |||
) | |||
)], | |||
['<?php function(array & $a){};', 3, 7, new ArgumentAnalysis( |
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.
👍
You could've save the trouble, as this was already in pr: #3924 ... |
@SpacePossum , can you please leave |
@SpacePossum , I merged 3924, please rebase to leave only tests for empty content |
nothing much of value here, closing as such |
what about those tests for empty (or almost-empty) files ? |
name ended up being
array&