Assets 2

See all related issues and PRs in the 8.0.1 milestone.

Added

  • 🌟 New DeprecatedTypeCasts sniff to detect deprecated and removed type casts, such as the (unset) type cast as deprecated in PHP 7.2. #498
  • 🌟 New NewTypeCasts sniff to detect type casts not present in older PHP versions such as the (binary) type cast as added in PHP 5.2.1. #497
  • ⭐️ NewGroupUseDeclaration: Detection of PHP 7.2 trailing comma's in group use statements. #504
  • ⭐️ DeprecatedFunctions sniff: recognize some more PHP 7.2 deprecated functions. #501
  • ⭐️ DeprecatedIniDirectives sniff: recognize more PHP 7.2 deprecated ini directives. #500
  • ⭐️ ForbiddenNames sniff: recognize object as a forbidden keyword since PHP 7.2. #499
  • ⭐️ NewReturnTypeDeclarations sniff: recognize generic parent, PHP 7.1 iterable and PHP 7.2 object return type declarations. #505, #499
  • ⭐️ NewScalarTypeDeclarations sniff: recognize PHP 7.2 object type declarion. #499

Changed

✏️ Improved clarity of the deprecated functions alternative in the error message. #502

Fixed

🚒 Temporary hotfix for installed_paths (pending upstream fix.) #503

Credits

Thanks go out to Juliette Reinders Folmer for her contributions to this version. 👏