PHPCompatibility v9.3.2 Release Notes

Release Date: 2019-10-16 // over 4 years ago
  • ๐Ÿ‘€ See all related issues and PRs in the [9.3.2 milestone].

    โž• Added

    • โญ๏ธ PHPCompatibility.Constants.NewConstants sniff: detection of the PHP 7.2 SODIUM_CRYPTO_PWHASH_ALG_ARGON2ID13 constant. #915
    • ๐Ÿ— ๐Ÿ“š Readme: a list of projects which are build upon or extend PHPCompatibility. #904

    ๐Ÿ”„ Changed

    • ๐Ÿ’… ๐Ÿ“Œ PHPCompatibility.FunctionNameRestrictions.RemovedPHP4StyleConstructors: minor efficiency fix to make the sniff faster. #912
    • ๐Ÿฑ ๐Ÿ“Œ PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames: functions marked as @deprecated in the function docblock will now be ignored by this sniff. #917. Fixes #911
    • ๐Ÿฑ ๐Ÿ“ PHPCompatibility.FunctionDeclarations.ForbiddenToStringParameters: the $ooScopeTokens property is now protected, it should never have been public in the first place. #907
    • ๐Ÿ“š โ™ป๏ธ More code documentation fixes. #903, #916
    • ๐Ÿฑ ๐Ÿ“š Readme/Contributing: various tweaks. #904, #905

    ๐Ÿ›  Fixed

    • ๐Ÿฑ ๐Ÿ› PHPCompatibility.FunctionUse.OptionalToRequiredFunctionParameters: false positive when a class is instantiated which has the same name as one of the affected functions. #914. Fixes #913
    • ๐Ÿฑ ๐Ÿ› PHPCompatibility.FunctionUse.RequiredToOptionalFunctionParameters: false positive when a class is instantiated which has the same name as one of the affected functions. #914
    • ๐Ÿฑ ๐Ÿ› PHPCompatibility.MethodUse.NewDirectCallsToClone: false positive on calling __clone() from within the class being cloned #910. Fixes #629 (comment)
    • ๐Ÿฑ ๐Ÿ› PHPCompatibility.Miscellaneous.ValidIntegers: binary numbers using an uppercase B were not always recognized correctly. #909