.. _ruleset-compatibilityphp80: CompatibilityPHP80 ++++++++++++++++++ This ruleset centralizes all analysis for the migration from PHP 7.4 to 8.0. Total : 45 analysis * :ref:`old-style-constructor` * :ref:`wrong-optional-parameter` * :ref:`php-8.0-removed-functions` * :ref:`php-8.0-removed-constants` * :ref:`concat-and-addition` * :ref:`php-7.4-removed-directives` * :ref:`cast-unset-usage` * :ref:`$php\_errormsg-usage` * :ref:`mismatch-parameter-name` * :ref:`php-8.0-removed-directives` * :ref:`unsupported-types-with-operators` * :ref:`negative-start-index-in-array` * :ref:`nullable-with-constant` * :ref:`php-8.0-resources-turned-into-objects` * :ref:`php-80-named-parameter-variadic` * :ref:`final-private-methods` * :ref:`array\_map()-passes-by-value` * :ref:`reserved-match-keyword` * :ref:`avoid-get\_object\_vars()` * :ref:`enum-usage` * :ref:`final-constant` * :ref:`never-typehint-usage` * :ref:`php-8.1-typehints` * :ref:`mixed-keyword` * :ref:`nested-attributes` * :ref:`new-initializers` * :ref:`cant-overload-constants` * :ref:`string-int-comparison` * :ref:`php-8.1-resources-turned-into-objects` * :ref:`clone-constant` * :ref:`named-argument-and-variadic` * :ref:`multiple-type-cases-in-switch` * :ref:`no-max-on-empty-array` * :ref:`constants-in-traits` * :ref:`use-enum-case-in-constant-expression` * :ref:`readonly-property-changed-by-cloning` * :ref:`new-dynamic-class-constant-syntax` * :ref:`class\_alias()-supports-internal-classes` * :ref:`redeclared-static-variable` * :ref:`static-variable-can-default-to-arbitrary-expression` * :ref:`final-traits-are-final` * :ref:`typed-class-constants-usage` * :ref:`void-is-not-a-reference` * :ref:`php-8.1-new-types` * :ref:`php-8.2-new-types` Specs _____ +--------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Short name | CompatibilityPHP80 | +--------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Community Edition `_, `Exakat Cloud `_ | +--------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Reports | :ref:`report-diplomat`, :ref:`report-ambassador` | +--------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+