-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[2.3] Static Code Analysis for Components #17282
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
Conversation
…ling independent foeach statements
not sure if we should replace |
foreach ($imports as $import) { | ||
$this->setCurrentDir(dirname($file)); |
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.
I'm not totally sure but i think this can change the behavior because import can change currentDir so we need to reset it.
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.
Right, will revert parts with ->setCurrentDir(...)
@OskarStark : that wasn't a global replacement, only cases when |
👍 |
👍 |
\0/, now I can start checking 2.7 =) |
Thank you @kalessil. |
This PR was squashed before being merged into the 2.3 branch (closes #17282). Discussion ---------- [2.3] Static Code Analysis for Components | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Static Code Analysis with Php Inspections (EA Extended): - several code constructs simplification - decoupling statements from foreach - extra colons/parenthesis removal (code style) - correct string functions usage (micro-optimization) - variable functions usage (php 5 compatible) Commits ------- 81f8181 [2.3] Static Code Analysis for Components
Static Code Analysis with Php Inspections (EA Extended):
- several code constructs simplification
- decoupling statements from foreach
- extra colons/parenthesis removal (code style)
- correct string functions usage (micro-optimization)
- variable functions usage (php 5 compatible)