Skip to content

Allow for multiple variables made global in ForbiddenGlobalVariableVariableSniff#316

Merged
wimg merged 1 commit intoPHPCompatibility:masterfrom
jrfnl:feature/improve-forbidden-global-var-vars
Jan 3, 2017
Merged

Allow for multiple variables made global in ForbiddenGlobalVariableVariableSniff#316
wimg merged 1 commit intoPHPCompatibility:masterfrom
jrfnl:feature/improve-forbidden-global-var-vars

Conversation

@jrfnl
Copy link
Copy Markdown
Member

@jrfnl jrfnl commented Dec 27, 2016

The ForbiddenGlobalVariableVariableSniff would currently only detect variable variables in a global statement if it was the first variable of the statement.
It basically didn't take multi-variable global statements into account.

Includes additional unit tests.
Includes reworking the test class to use data providers as there are now more test cases.

@jrfnl jrfnl force-pushed the feature/improve-forbidden-global-var-vars branch from b320a86 to 36a4fca Compare December 27, 2016 08:17
@coveralls
Copy link
Copy Markdown

coveralls commented Dec 27, 2016

Coverage Status

Coverage increased (+0.02%) to 96.742% when pulling b320a86 on jrfnl:feature/improve-forbidden-global-var-vars into e1af2c3 on wimg:master.

…riableSniff

The ForbiddenGlobalVariableVariableSniff would currently only detect variable variables in a global statement if it was the first variable of the statement.
It basically didn't take multi-variable global statements into account.

Includes additional unit tests.
Includes reworking the test class to use data providers as there are now more test cases.
@jrfnl jrfnl force-pushed the feature/improve-forbidden-global-var-vars branch from 36a4fca to aaa2231 Compare December 27, 2016 08:32
@coveralls
Copy link
Copy Markdown

coveralls commented Dec 27, 2016

Coverage Status

Coverage increased (+0.02%) to 96.742% when pulling 36a4fca on jrfnl:feature/improve-forbidden-global-var-vars into e1af2c3 on wimg:master.

@coveralls
Copy link
Copy Markdown

coveralls commented Dec 27, 2016

Coverage Status

Coverage increased (+0.02%) to 96.742% when pulling aaa2231 on jrfnl:feature/improve-forbidden-global-var-vars into e1af2c3 on wimg:master.

@wimg wimg merged commit 155e4d1 into PHPCompatibility:master Jan 3, 2017
@jrfnl jrfnl deleted the feature/improve-forbidden-global-var-vars branch January 3, 2017 01:12
@jrfnl jrfnl added this to the 7.1.2 milestone May 2, 2017
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.

3 participants