diff --git a/docs/rector_rules_overview.md b/docs/rector_rules_overview.md index d137a6ab9d2..a2f4eb39105 100644 --- a/docs/rector_rules_overview.md +++ b/docs/rector_rules_overview.md @@ -1,4 +1,4 @@ -# 381 Rules Overview +# 379 Rules Overview
@@ -8,7 +8,7 @@ - [Carbon](#carbon) (4) -- [CodeQuality](#codequality) (75) +- [CodeQuality](#codequality) (73) - [CodingStyle](#codingstyle) (28) @@ -364,35 +364,6 @@ Refactor `call_user_func()` with arrow function to direct call
-### CallableThisArrayToAnonymousFunctionRector - -Convert [$this, "method"] to proper anonymous function - -- class: [`Rector\CodeQuality\Rector\Array_\CallableThisArrayToAnonymousFunctionRector`](../rules/CodeQuality/Rector/Array_/CallableThisArrayToAnonymousFunctionRector.php) - -```diff - class SomeClass - { - public function run() - { - $values = [1, 5, 3]; -- usort($values, [$this, 'compareSize']); -+ usort($values, function ($first, $second) { -+ return $this->compareSize($first, $second); -+ }); - - return $values; - } - - private function compareSize($first, $second) - { - return $first <=> $second; - } - } -``` - -
- ### ChangeArrayPushToArrayAssignRector Change `array_push()` to direct variable assign @@ -752,19 +723,6 @@ Simplify `foreach` loops into `in_array` when possible
-### GetClassToInstanceOfRector - -Changes comparison with get_class to instanceof - -- class: [`Rector\CodeQuality\Rector\Identical\GetClassToInstanceOfRector`](../rules/CodeQuality/Rector/Identical/GetClassToInstanceOfRector.php) - -```diff --if (EventsListener::class === get_class($event->job)) { } -+if ($event->job instanceof EventsListener) { } -``` - -
- ### InlineArrayReturnAssignRector Inline just in time array dim fetch assigns to direct return diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index c23e426f3c0..3e70495b913 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 = '41eac561ccc1416f1fd1882473daa54a3c9f8603'; + public const PACKAGE_VERSION = 'cc15e20e1f0e01799b3ca4997305a7adda22654c'; /** * @api * @var string */ - public const RELEASE_DATE = '2024-06-23 01:34:47'; + public const RELEASE_DATE = '2024-06-23 00:28:30'; /** * @var int */