From 74a7c51d383b8ad5c6adb10cd67fe5f7f8ff290d Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Sun, 25 Feb 2024 01:25:54 +0100 Subject: [PATCH] [automated] Re-Generate Nodes/Rectors Documentation (#5664) Co-authored-by: TomasVotruba --- .../docs/rector_rules_overview.md | 23 +++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/build/target-repository/docs/rector_rules_overview.md b/build/target-repository/docs/rector_rules_overview.md index 54ec6559364..d6f04184ba3 100644 --- a/build/target-repository/docs/rector_rules_overview.md +++ b/build/target-repository/docs/rector_rules_overview.md @@ -1,4 +1,4 @@ -# 361 Rules Overview +# 363 Rules Overview
@@ -54,7 +54,7 @@ - [Strict](#strict) (5) -- [Transform](#transform) (23) +- [Transform](#transform) (24) - [TypeDeclaration](#typedeclaration) (44) @@ -4693,9 +4693,9 @@ Change annotation to attribute class SymfonyRoute { - /** -- * @Route("/path", name="action") +- * @Route("/path", name="action") api route - */ -+ #[Route(path: '/path', name: 'action')] ++ #[Route(path: '/path', name: 'action')] // api route public function action() { } @@ -5874,6 +5874,21 @@ Replace key value on specific attribute to class constant
+### ConstFetchToClassConstFetchRector + +Change const fetch to class const fetch + +:wrench: **configure it!** + +- class: [`Rector\Transform\Rector\ConstFetch\ConstFetchToClassConstFetchRector`](../rules/Transform/Rector/ConstFetch/ConstFetchToClassConstFetchRector.php) + +```diff +-$x = CONTEXT_COURSE ++$x = course::LEVEL +``` + +
+ ### FuncCallToConstFetchRector Changes use of function calls to use constants