Skip to content

PHP 5.3: New DynamicAccessToStatic sniff#535

Merged
wimg merged 1 commit intomasterfrom
feature/new-dynamic-access-to-static-sniff
Nov 22, 2017
Merged

PHP 5.3: New DynamicAccessToStatic sniff#535
wimg merged 1 commit intomasterfrom
feature/new-dynamic-access-to-static-sniff

Conversation

@jrfnl
Copy link
Copy Markdown
Member

@jrfnl jrfnl commented Nov 14, 2017

New sniff to detect dynamic access to static methods and properties, as well as class constants, prior to PHP 5.3.

Includes unit tests.

We may run into some false positives, though I've done due diligence and ran the sniff over a couple of semi-large PHP projects with various minimum PHP requirements (WordPress (5.2), PHP_CodeSniffer (5.4), PHPUnit 6.x (7.0) ) to see if could find any and so far, I haven't.

Fixes #534

New sniff to detect dynamic access to static methods and properties, as well as class constants, prior to PHP 5.3.

Includes unit tests.

We may run into some false positives, though I've done due diligence and ran the sniff over a couple of semi-large PHP projects with various minimum PHP requirements (WordPress (5.2), PHP_CodeSniffer (5.4), PHPUnit 6.x (7.0) ) to see if could find any and so far, I haven't.

Fixes 534
@wimg wimg merged commit e13a823 into master Nov 22, 2017
@wimg wimg deleted the feature/new-dynamic-access-to-static-sniff branch November 22, 2017 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants