PHP 7.0 Sniffs - update 2016-09-23
See all related issues and PRs in the 7.0.6 milestone.
Added
- ⭐ New
stripQuotes()
utility method in thePHPCompatibility_Sniff
base class to strip quotes which surround text strings in a consistent manner. #224 - 📚 Readme: Add PHP Version Support section. #225
Changed
- 📌 The
ForbiddenCallTimePassByReference
sniff will now also report the deprecation as of PHP 5.3, not just its removal as of PHP 5.4. #203 - 📌 The
NewFunctionArrayDereferencing
sniff will now also check method calls for array dereferencing, not just function calls. #229. Fixes #227. - ✏️ The
NewExecutionDirectives
sniff will now throwwarning
s instead oferror
s for invalid values encountered in execution directives. #223 - ✏️ Minor miscellaneous fixes. #231
- ♻️ Various (minor) refactoring for improved performance and sniff accuracy. #219, #203
- ♻️ Defer to upstream
findImplementedInterfaceNames()
utility method when it exists. #222 - 🔧 Exclude the test files from analysis by Scrutinizer CI. #230
Removed
- 🚫 Some redundant code. #232
Fixed
- 🐛 The
EmptyNonVariable
sniff would throw false positives for variable variables and for array access with a (partially) variable array index. #212. Fixes #210. - 🐛 The
NewFunctionArrayDereferencing
sniff would throw false positives for lines of code containing both a function call as well as square brackets, even when they were unrelated. #228. Fixes #226. - 🐛
ParameterShadowSuperGlobals
sniff would report false positives for lowercase/mixed cased variables shadowing superglobals. #218. Fixes #214. - 🐛 The
determineNamespace()
utility method now accounts properly for namespaces within scopeddeclare()
statements. #221 - 📚 Readme: Logo alignment in the Credits section. #233
Credits
Thanks go out to Jason Stallings, Juliette Reinders Folmer and Mark Clements for their contributions to this version. 👏