Skip to content

Commit 7e76204

Browse files
committed
bump to getFile() method
1 parent cf3936e commit 7e76204

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

rules/Configs/Rector/Closure/ServiceSettersToSettersAutodiscoveryRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ private function createAbsolutePathConcat(string $classFilePath): Concat
218218
{
219219
$relativeDirectoryPath = $this->filesystem->makePathRelative(
220220
dirname($classFilePath),
221-
dirname($this->file->getFilePath())
221+
dirname($this->getFile()->getFilePath())
222222
);
223223

224224
$distConstFetch = new ConstFetch(new Name('__DIR__'));

rules/Symfony43/Rector/MethodCall/ConvertRenderTemplateShortNotationToBundleSyntaxRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function refactor(Node $node): ?Node
112112
}
113113

114114
if (! isset($matches[0])) {
115-
return null;
115+
return null;t
116116
}
117117

118118
$newValue = '@' .

rules/Symfony73/Rector/Class_/ConstraintOptionsToNamedArgumentsRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function refactor(Node $node): ?Node
125125

126126
$array = $node->args[0]->value;
127127
$namedArgs = [];
128-
$oldTokens = $this->file->getOldTokens();
128+
$oldTokens = $this->getFile()->getOldTokens();
129129

130130
foreach ($array->items as $item) {
131131
if (! $item instanceof ArrayItem) {

0 commit comments

Comments
 (0)