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 */