IMPORTANT: This release contains breaking changes. Please read and follow the Upgrade guide in the wiki carefully before upgrading!
This release includes all improvements and bugfixes from PHPCompatibility 10.0.0-alpha1.
See all related issues and PRs in the 10.0.0-alpha2 milestone.
Added
- PHP cross-version:
- PHP 8.3:
- PHP 8.5:
- 🌟 New
PHPCompatibility.Classes.NewStaticAvizPropertiessniff. #1950
- 🌟 New
- ⭐
PHPCompatibility.Classes.NewClassessniff: recognize the new DateTime and SQLite extension related error and exception classes as introduced in PHP 8.3. #1936, #1937 - ⭐
PHPCompatibility.Constants.NewConstantssniff: recognize various constants from the Mhash extension. #1938 - ⭐
PHPCompatibility.ParameterValues.ChangedIntToBoolParamTypesniff: detect the Zlib$use_include_pathparameter type change as per PHP 8.5. #1949 - ⭐ The "list based" sniffs, like
NewFunctions,RemovedIniDirectives,ForbiddenNamesetc, have received updates to account for new/deprecated/removed PHP classes, constants, functions, function parameters, ini directives, reserved namespaces and type casts as per PHP 8.5. - 📚 Documentation for the following sniffs:
- PHPCompatibility.Syntax.NewShortArray #1997
Changed
- 🔀
PHPCompatibility.TypeCasts.RemovedTypeCastshas new error codes. #1941- The
t_unset_castDeprecatedRemovedhas been changed tounsetDeprecatedRemoved. - The
t_double_castDeprecatedRemovedhas been changed torealDeprecatedRemoved.
- The
- 📌
PHPCompatibility.Keywords.ForbiddenNameswill now also detect incompatible use of the "other" reserved keywordsparentandself. #1940 - 🔧 ☔ Various housekeeping, including general maintenance, improvements to speed up the sniffs, improvements to CI, the tests and documentation.
Credits
Thanks go out to @afilina and @okkun-sh for their contributions to this version. 👏