mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-21 16:02:23 +02:00
Updated Rector to commit feaf6eae6b9a765fe229d65a9ba07c5715649dee
feaf6eae6b
Update incorrect configuration example (#6294)
This commit is contained in:
parent
99b1eff645
commit
4cbb79dc5f
@ -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<class-string<Node>>
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user