github PHPCompatibility/PHPCompatibility 7.0.1
7.0.1: PHP 7.0 Sniffs - update 2016-08-02

latest releases: 9.3.5, 9.3.4, 9.3.3...
7 years ago

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 an error when a deprecated ini directive was used in combination with ini_get(). It will now throw a warning instead. #122 Fixes #119.
    Usage of deprecated ini directives in combination with ini_set() will still throw an error.
  • 📌 The PregReplaceEModifier sniff now also detects the e modifier when used with the preg_filter() function. While this is undocumented, the e modifier was supported by the preg_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.6 use function ... and use 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 the e 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. 👏

Don't miss a new PHPCompatibility release

NewReleases is sending notifications on new releases.