Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ private function createAbsolutePathConcat(string $classFilePath): Concat
{
$relativeDirectoryPath = $this->filesystem->makePathRelative(
dirname($classFilePath),
dirname($this->getFile()->getFilePath())
dirname((string) $this->getFile()->getFilePath())
);

$distConstFetch = new ConstFetch(new Name('__DIR__'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ public function refactor(Node $node): ?Node
return null;
}

/** @var String_ $stringNode */
$stringNode = $firstArg->value;

// not a form type string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function refactor(Node $node): ?Node
}

if (! isset($matches[0])) {
return null;t
return null;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TomasVotruba this one :)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

}

$newValue = '@' .
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,11 @@ private function isReturnIntegerType(?Expr $expr): bool

private function isIntegerTernaryIfElse(Ternary $ternary): bool
{
/** @var Expr|null $if */
$if = $ternary->if;
if (! $if instanceof Expr) {
$if = $ternary->cond;
}

/** @var Expr $else */
$else = $ternary->else;
$ifType = $this->getType($if);
$elseType = $this->getType($else);
Expand Down
Loading