Skip to content

Commit

Permalink
Updated Rector to commit feaf6eae6b9a765fe229d65a9ba07c5715649dee
Browse files Browse the repository at this point in the history
rectorphp/rector-src@feaf6ea Update incorrect configuration example (#6294)
  • Loading branch information
TomasVotruba committed Sep 6, 2024
1 parent 99b1eff commit 4cbb79d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -36,11 +36,11 @@ class SomeClass
{
public function run()
{
$this->someProperty;
$this->firstname;
}
}
CODE_SAMPLE
, ['someMethod' => 'someProperty'])]);
, [new MethodCallToPropertyFetch('ExamplePersonClass', 'getFirstname', 'firstname')])]);
}
/**
* @return array<class-string<Node>>
Expand Down
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 4cbb79d

Please sign in to comment.