From 4cbb79dc5f40bb3d465edeaab4ddd39986964a4f Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Fri, 6 Sep 2024 12:11:39 +0000 Subject: [PATCH] Updated Rector to commit feaf6eae6b9a765fe229d65a9ba07c5715649dee https://github.com/rectorphp/rector-src/commit/feaf6eae6b9a765fe229d65a9ba07c5715649dee Update incorrect configuration example (#6294) --- .../Rector/MethodCall/MethodCallToPropertyFetchRector.php | 8 ++++---- src/Application/VersionResolver.php | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/rules/Transform/Rector/MethodCall/MethodCallToPropertyFetchRector.php b/rules/Transform/Rector/MethodCall/MethodCallToPropertyFetchRector.php index 07a5dff8963..ac1de70dc84 100644 --- a/rules/Transform/Rector/MethodCall/MethodCallToPropertyFetchRector.php +++ b/rules/Transform/Rector/MethodCall/MethodCallToPropertyFetchRector.php @@ -22,12 +22,12 @@ final class MethodCallToPropertyFetchRector extends AbstractRector implements Co private $methodCallsToPropertyFetches = []; public function getRuleDefinition() : RuleDefinition { - return new RuleDefinition('Turns method call "$this->something()" to property fetch "$this->something"', [new ConfiguredCodeSample(<<<'CODE_SAMPLE' + return new RuleDefinition('Turns method call "$this->getFirstname()" to property fetch "$this->firstname"', [new ConfiguredCodeSample(<<<'CODE_SAMPLE' class SomeClass { public function run() { - $this->someMethod(); + $this->getFirstname(); } } CODE_SAMPLE @@ -36,11 +36,11 @@ class SomeClass { public function run() { - $this->someProperty; + $this->firstname; } } CODE_SAMPLE -, ['someMethod' => 'someProperty'])]); +, [new MethodCallToPropertyFetch('ExamplePersonClass', 'getFirstname', 'firstname')])]); } /** * @return array> diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 62b72fe5032..9c416a0c2bf 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 = '4a94d2e5049deffdfe4b5ce2597845ad1b4a0016'; + public const PACKAGE_VERSION = 'feaf6eae6b9a765fe229d65a9ba07c5715649dee'; /** * @api * @var string */ - public const RELEASE_DATE = '2024-09-06 06:43:14'; + public const RELEASE_DATE = '2024-09-06 14:09:11'; /** * @var int */