Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[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

Closed
wants to merge 3 commits into from
Closed

[2.3] Static Code Analysis for Components #15051

wants to merge 3 commits into from

Conversation

kalessil
Copy link
Contributor

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

  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) {
Copy link
Member

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.

Copy link
Contributor Author

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...

Copy link
Member

Choose a reason for hiding this comment

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

See #14937

Copy link
Contributor Author

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.

@nicolas-grekas
Copy link
Member

👍

@fabpot
Copy link
Member

fabpot commented Jun 21, 2015

Thank you @kalessil.

fabpot added a commit that referenced this pull request Jun 21, 2015
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
@fabpot fabpot closed this Jun 21, 2015
@kalessil kalessil deleted the 2.3-SCA branch December 21, 2015 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants