From 28b87977fbccab8f12eb869ac37a16ee050e5068 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Sun, 14 Jul 2024 00:32:51 +0000 Subject: [PATCH] Updated Rector to commit 2e748886a32065bf3b432b7b144f72e0938beecb https://github.com/rectorphp/rector-src/commit/2e748886a32065bf3b432b7b144f72e0938beecb [automated] Re-Generate Nodes/Rectors Documentation (#6142) --- docs/rector_rules_overview.md | 23 +++++++++++++++++++++-- src/Application/VersionResolver.php | 4 ++-- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/docs/rector_rules_overview.md b/docs/rector_rules_overview.md index 1e4f346c67b..95371cd1433 100644 --- a/docs/rector_rules_overview.md +++ b/docs/rector_rules_overview.md @@ -1,4 +1,4 @@ -# 379 Rules Overview +# 380 Rules Overview
@@ -10,7 +10,7 @@ - [CodeQuality](#codequality) (69) -- [CodingStyle](#codingstyle) (28) +- [CodingStyle](#codingstyle) (29) - [DeadCode](#deadcode) (45) @@ -1769,6 +1769,25 @@ Refactor `func_get_args()` in to a variadic param
+### FunctionFirstClassCallableRector + +Upgrade string callback functions to first class callable + +- class: [`Rector\CodingStyle\Rector\FuncCall\FunctionFirstClassCallableRector`](../rules/CodingStyle/Rector/FuncCall/FunctionFirstClassCallableRector.php) + +```diff + final class SomeClass + { + public function run(array $data) + { +- return array_map('trim', $data); ++ return array_map(trim(...), $data); + } + } +``` + +
+ ### MakeInheritedMethodVisibilitySameAsParentRector Make method visibility same as parent one diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 0d6badb720f..6301d01c9a9 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -19,12 +19,12 @@ final class VersionResolver * @api * @var string */ - public const PACKAGE_VERSION = 'dc2a3cd5cec984cf53df08fba9023a6b79e78470'; + public const PACKAGE_VERSION = '2e748886a32065bf3b432b7b144f72e0938beecb'; /** * @api * @var string */ - public const RELEASE_DATE = '2024-07-14 02:52:28'; + public const RELEASE_DATE = '2024-07-14 00:30:22'; /** * @var int */