Skip to content

Commit 7a64c57

Browse files
committed
Fix linter issues
1 parent 4d0ea4d commit 7a64c57

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/Node/Literal/IntLiteralNode.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public static function parse(string $value): static
4040
return new static(\PHP_INT_MIN, $value, $inverse);
4141
}
4242

43+
/** @phpstan-ignore-next-line : An "$inverse" variable contain numeric-string */
4344
return new static((int) $inverse, $value, $inverse);
4445
}
4546

src/Node/Literal/VariableLiteralNode.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public static function parse(string $value): static
4646

4747
public function getValue(): string
4848
{
49+
/** @var non-empty-string */
4950
return $this->value;
5051
}
5152
}

src/Node/Stmt/Shape/ClassConstMaskFieldNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function __construct(
2020
parent::__construct($of, $optional, $attributes);
2121
}
2222

23-
public function getKey(): int|string
23+
public function getKey(): string
2424
{
2525
$result = $this->key->class->toString()
2626
. '::' . $this->key->constant?->toString();

0 commit comments

Comments
 (0)