PHPCompatibility v7.0.1 Release Notes

Release Date: 2016-08-02 // over 7 years ago
  • ๐Ÿ‘€ See all related issues and PRs in the [7.0.1 milestone].

    ๐Ÿ”„ Changed

    • ๐Ÿ—„ :pushpin: 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.
    • ๐Ÿ‘ :pushpin: 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
    • ๐Ÿšš :pencil2: The RemovedExtensions sniff contained superfluous deprecation information in the error message. #131

    โœ‚ Removed

    • ๐Ÿ— :wrench: Duplicate builds from the Travis CI build matrix. #132

    ๐Ÿ›  Fixed

    • ๐Ÿ›  :bug: The ForbiddenNames sniff did not allow for the PHP 5.6 use function ... and use const ... syntax. #126 Fixes #124.
    • :bug: The NewClasses sniff failed to detect new classes when the class was instantiated without parenthesis, i.e. new NewClass;. #121
    • :bug: The PregReplaceEModifier sniff failed to detect the e modifier when using bracket delimiters for the regex other than the {} brackets. #128
    • โœ… :green_heart: 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. :clap: