Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.2] Fix issues reported by static analyse#21802

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@romainneutron
Copy link
Contributor

QA
Branch?3.2
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
LicenseMIT

Follow-up#21801

CacheItem::validateKey($version);

if (!apcu_exists($version.'@'.$namespace)) {
$this->clear($namespace);
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

@nicolas-grekas Theclear method has no argument; is it a bug?

Copy link
Member

Choose a reason for hiding this comment

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

maybe it was expected to calldoClear directly ?

nicolas-grekas reacted with thumbs up emoji
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Updated

$strict =true;
}

$arguments[$key] =newReference($arg->getAttribute('id'),$invalidBehavior,$strict);
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Reference has lost its third argument

@romainneutronromainneutronforce-pushed the3.2-static-analyze branch 2 times, most recently from51fabbe to67e7b5aCompareFebruary 28, 2017 14:38
@nicolas-grekas
Copy link
Member

Thank you@romainneutron.

@nicolas-grekasnicolas-grekas merged commita9ccacc intosymfony:3.2Feb 28, 2017
nicolas-grekas added a commit that referenced this pull requestFeb 28, 2017
This PR was merged into the 3.2 branch.Discussion----------[3.2] Fix issues reported by static analyse| Q             | A| ------------- | ---| Branch?       | 3.2| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| License       | MITFollow-up#21801Commits-------a9ccacc [3.2] Fix issues reported by static analyse
@romainneutronromainneutron deleted the 3.2-static-analyze branchFebruary 28, 2017 15:14
nicolas-grekas added a commit that referenced this pull requestFeb 28, 2017
…ron)This PR was merged into the 3.3-dev branch.Discussion----------[master] Fix issues reported by static analyse| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| License       | MITFollow-up#21802Commits-------671694d [master] Fix issues reported by static analyse
@acrobat
Copy link
Contributor

@romainneutron which tool is used to do this analysis?

$r =new \ReflectionMethod($this,__FUNCTION__);
if (__CLASS__ !==$r->getDeclaringClass()->getName()) {
@trigger_error(sprintf('Method %s() will have a 6th `$format = null` argument in version 4.0. Not defining it is deprecated since 3.2.',get_class($this),__FUNCTION__),E_USER_DEPRECATED);
@trigger_error(sprintf('Method %s::%s() will have a 6th `$format = null` argument in version 4.0. Not defining it is deprecated since 3.2.',get_class($this),__FUNCTION__),E_USER_DEPRECATED);
Copy link
Contributor

Choose a reason for hiding this comment

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

__METHOD__ could have been used here as well (issue reported by organic analysis:trollface:).

Copy link
Member

@nicolas-grekasnicolas-grekasMar 5, 2017
edited
Loading

Choose a reason for hiding this comment

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

@HeahDude organic analysis failure:get_class($this) !== __CLASS__ when $this is a child class of AbstractNormalizer (which it always is in this case ;) )

HeahDude reacted with laugh emoji
@fabpotfabpot mentioned this pull requestMar 9, 2017
@romainneutron
Copy link
ContributorAuthor

@acrobat PHPStanhttps://github.com/phpstan/phpstan

acrobat reacted with thumbs up emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

@stofstofstof left review comments

+1 more reviewer

@HeahDudeHeahDudeHeahDude left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

6 participants

@romainneutron@nicolas-grekas@acrobat@stof@HeahDude@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp