All PHP 7.0 sniffs + fixes for sniffs for previous versions
See all related issues and PRs in the 7.0.1 milestone.
Changed
- 📌 The
DeprecatedIniDirectives
sniff used to throw anerror
when a deprecated ini directive was used in combination withini_get()
. It will now throw awarning
instead. #122 Fixes #119.
Usage of deprecated ini directives in combination withini_set()
will still throw anerror
. - 📌 The
PregReplaceEModifier
sniff now also detects thee
modifier when used with thepreg_filter()
function. While this is undocumented, thee
modifier was supported by thepreg_filter()
function as well. #128 - ✏️ The
RemovedExtensions
sniff contained superfluous deprecation information in the error message. #131
Removed
- 🔧 Duplicate builds from the Travis CI build matrix. #132
Fixed
- 🐛 The
ForbiddenNames
sniff did not allow for the PHP 5.6use function ...
anduse const ...
syntax. #126 Fixes #124. - 🐛 The
NewClasses
sniff failed to detect new classes when the class was instantiated without parenthesis, i.e.new NewClass;
. #121 - 🐛 The
PregReplaceEModifier
sniff failed to detect thee
modifier when using bracket delimiters for the regex other than the{}
brackets. #128 - 💚 Unit tests failing against PHPCS 2.6.1.
Credits
Thanks go out to Jason Stallings, Juliette Reinders Folmer and Ryan Neufeld for their contributions to this version. 👏