-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[2.3] Static Code Analysis for Components #15051
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
magic methods validity: resolved possible fatals random api migration: used mt_* in some of components *printf issues resolved
$protocol = ''; | ||
try { | ||
$protocol = $this->server->get('SERVER_PROTOCOL'); | ||
} catch (\InvalidArgumentException $mallformedPath) { |
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.
We merged a PR where all caught exceptions were renamed to $e. So should be this one.
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.
Emm, why? Code shall be self-explaining.
I could then rename $protocol to $p - it's clear from context what happens...
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.
See #14937
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 see, ths for the link.
👍 |
Thank you @kalessil. |
This PR was squashed before being merged into the 2.3 branch (closes #15051). 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): - magic methods validity: resolved possible fatals - random api migration: used mt_* in some of components - *printf issues resolved Commits ------- aa5e616 [2.3] Static Code Analysis for Components
Static Code Analysis with Php Inspections (EA Extended):
- magic methods validity: resolved possible fatals
- random api migration: used mt_* in some of components
- *printf issues resolved