In PHP 5.4, the break and continue statements no longer accept variable arguments (e.g., break 1 + foo() * $bar;). Static arguments still work, such as break 2;. As a side effect of this change break 0; and continue 0; are no longer allowed.
Details
Details
- Reviewers
epriestley - Group Reviewers
Blessed Reviewers - Commits
- rARC8ed1459ecdba: Add a linter rule to detect variable arguments for `break` and `continue`
Added some test cases.
Diff Detail
Diff Detail
- Repository
- rARC Arcanist
- Branch
- master
- Lint
Lint Passed - Unit
Test Failures - Build Status
Buildable 2650 Build 2654: [Placeholder Plan] Wait for 30 Seconds
Time | Test | |
---|---|---|
0 ms | testXMLLint | |
0 ms | testCSSLintLinter | |
0 ms | testClosureLinter | |
0 ms | testCoffeeLintLinter | |
0 ms | testFixLetterCase | |
View Full Test Results (1 Failed · 21 Passed · 5 Skipped) |