Browse Source

feat: Introduce `@PHP83Migration` ruleset and PHP 8.3 integration test (#7439)

Greg Korba 1 year ago
parent
commit
b090e9ded6

+ 10 - 0
doc/ruleSets/PHP83Migration.rst

@@ -0,0 +1,10 @@
+============================
+Rule set ``@PHP83Migration``
+============================
+
+Rules to improve code for PHP 8.3 compatibility.
+
+Rules
+-----
+
+- `@PHP82Migration <./PHP82Migration.rst>`_

+ 1 - 0
doc/ruleSets/index.rst

@@ -23,6 +23,7 @@ List of Available Rule sets
 - `@PHP80Migration:risky <./PHP80MigrationRisky.rst>`_
 - `@PHP81Migration <./PHP81Migration.rst>`_
 - `@PHP82Migration <./PHP82Migration.rst>`_
+- `@PHP83Migration <./PHP83Migration.rst>`_
 - `@PHPUnit30Migration:risky <./PHPUnit30MigrationRisky.rst>`_
 - `@PHPUnit32Migration:risky <./PHPUnit32MigrationRisky.rst>`_
 - `@PHPUnit35Migration:risky <./PHPUnit35MigrationRisky.rst>`_

+ 1 - 0
doc/rules/array_notation/array_syntax.rst

@@ -58,6 +58,7 @@ The rule is part of the following rule sets:
 - `@PHP80Migration <./../../ruleSets/PHP80Migration.rst>`_
 - `@PHP81Migration <./../../ruleSets/PHP81Migration.rst>`_
 - `@PHP82Migration <./../../ruleSets/PHP82Migration.rst>`_
+- `@PHP83Migration <./../../ruleSets/PHP83Migration.rst>`_
 - `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_
 - `@Symfony <./../../ruleSets/Symfony.rst>`_
 

+ 4 - 0
doc/rules/array_notation/no_whitespace_before_comma_in_array.rst

@@ -73,6 +73,10 @@ The rule is part of the following rule sets:
 
   ``['after_heredoc' => true]``
 
+- `@PHP83Migration <./../../ruleSets/PHP83Migration.rst>`_ with config:
+
+  ``['after_heredoc' => true]``
+
 - `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_
 - `@Symfony <./../../ruleSets/Symfony.rst>`_
 

+ 1 - 0
doc/rules/array_notation/normalize_index_brace.rst

@@ -27,6 +27,7 @@ The rule is part of the following rule sets:
 - `@PHP80Migration <./../../ruleSets/PHP80Migration.rst>`_
 - `@PHP81Migration <./../../ruleSets/PHP81Migration.rst>`_
 - `@PHP82Migration <./../../ruleSets/PHP82Migration.rst>`_
+- `@PHP83Migration <./../../ruleSets/PHP83Migration.rst>`_
 - `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_
 - `@Symfony <./../../ruleSets/Symfony.rst>`_
 

+ 1 - 0
doc/rules/basic/octal_notation.rst

@@ -24,6 +24,7 @@ The rule is part of the following rule sets:
 
 - `@PHP81Migration <./../../ruleSets/PHP81Migration.rst>`_
 - `@PHP82Migration <./../../ruleSets/PHP82Migration.rst>`_
+- `@PHP83Migration <./../../ruleSets/PHP83Migration.rst>`_
 
 Source class
 ------------

+ 1 - 0
doc/rules/cast_notation/no_unset_cast.rst

@@ -26,6 +26,7 @@ The rule is part of the following rule sets:
 - `@PHP80Migration <./../../ruleSets/PHP80Migration.rst>`_
 - `@PHP81Migration <./../../ruleSets/PHP81Migration.rst>`_
 - `@PHP82Migration <./../../ruleSets/PHP82Migration.rst>`_
+- `@PHP83Migration <./../../ruleSets/PHP83Migration.rst>`_
 - `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_
 - `@Symfony <./../../ruleSets/Symfony.rst>`_
 

+ 1 - 0
doc/rules/cast_notation/short_scalar_cast.rst

@@ -40,6 +40,7 @@ The rule is part of the following rule sets:
 - `@PHP80Migration <./../../ruleSets/PHP80Migration.rst>`_
 - `@PHP81Migration <./../../ruleSets/PHP81Migration.rst>`_
 - `@PHP82Migration <./../../ruleSets/PHP82Migration.rst>`_
+- `@PHP83Migration <./../../ruleSets/PHP83Migration.rst>`_
 - `@PSR12 <./../../ruleSets/PSR12.rst>`_
 - `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_
 - `@Symfony <./../../ruleSets/Symfony.rst>`_

+ 1 - 0
doc/rules/class_notation/visibility_required.rst

@@ -75,6 +75,7 @@ The rule is part of the following rule sets:
 - `@PHP80Migration <./../../ruleSets/PHP80Migration.rst>`_
 - `@PHP81Migration <./../../ruleSets/PHP81Migration.rst>`_
 - `@PHP82Migration <./../../ruleSets/PHP82Migration.rst>`_
+- `@PHP83Migration <./../../ruleSets/PHP83Migration.rst>`_
 - `@PSR2 <./../../ruleSets/PSR2.rst>`_ with config:
 
   ``['elements' => ['method', 'property']]``

+ 4 - 0
doc/rules/control_structure/trailing_comma_in_multiline.rst

@@ -123,6 +123,10 @@ The rule is part of the following rule sets:
 
   ``['after_heredoc' => true]``
 
+- `@PHP83Migration <./../../ruleSets/PHP83Migration.rst>`_ with config:
+
+  ``['after_heredoc' => true]``
+
 - `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_
 - `@Symfony <./../../ruleSets/Symfony.rst>`_
 

Some files were not shown because too many files changed in this diff