2.3.20. CompatibilityPHP80¶

This ruleset centralizes all analysis for the migration from PHP 7.4 to 8.0.

Total : 46 analysis

  • Old Style Constructor

  • Wrong Optional Parameter

  • PHP 8.0 Removed Functions

  • PHP 8.0 Removed Constants

  • Concat And Addition

  • PHP 7.4 Removed Directives

  • Cast Unset Usage

  • $php_errormsg Usage

  • Mismatch Parameter Name

  • PHP 8.0 Removed Directives

  • Unsupported Types With Operators

  • Negative Start Index In Array

  • Nullable With Constant

  • PHP 8.0 Resources Turned Into Objects

  • PHP 80 Named Parameter Variadic

  • Final Private Methods

  • Array_Map() Passes By Value

  • Reserved Match Keyword

  • Avoid get_object_vars()

  • Enum Usage

  • Final Constant

  • Never Typehint Usage

  • PHP 8.1 Typehints

  • The Mixed Keyword

  • Nested Attributes

  • New Initializers

  • Cant Overload Constants

  • String Int Comparison

  • PHP 8.1 Resources Turned Into Objects

  • Clone Constant

  • Named Argument And Variadic

  • Multiple Type Cases In Switch

  • No Max On Empty Array

  • Constants In Traits

  • Use Enum Case In Constant Expression

  • Readonly Property Changed By Cloning

  • New Dynamic Class Constant Syntax

  • class_alias() Supports Internal Classes

  • Redeclared Static Variable

  • Static Variable Can Default To Arbitrary Expression

  • Final Traits Are Final

  • Typed Class Constants Usage

  • Void Is Not A Reference

  • PHP 8.1 New Types

  • PHP 8.2 New Types

  • Anonymous Catch

2.3.20.1. Specs¶

Short name

CompatibilityPHP80

Available in

Entreprise Edition, Community Edition, Exakat Cloud

Reports

Diplomat, Ambassador

Exakat

Navigation

  • Introduction
  • Release Note

GETTING STARTED

  • Standard installation
  • Docker installation
  • Tutorials

USER GUIDE

  • Overview
  • PHP Version
  • Library & Framework Support
  • Configuration
  • Scoping analysis
  • Rule
  • Report
  • Cobbler

REFERENCE GUIDE

  • 1. Rules
  • 2. Rulesets
  • 3. Reports
  • 4. Cobblers
  • 5. Real Code Cases

ADMINISTRATOR GUIDE

  • Installation
  • Upgrading
  • Configuration
  • Commands

OTHERS

  • Frequently Asked Questions
  • Glossary
  • Annex

Related Topics

  • Documentation overview
    • 2. Rulesets
      • Previous: 2.3.19. CompatibilityPHP74
      • Next: 2.3.21. CompatibilityPHP81
©2015-2025, Damien Seguy - Exakat. | Powered by Sphinx 9.0.4 & Alabaster 1.0.0 | Page source