mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-16 16:17:43 +03:00
Fix static analysis issues
This commit is contained in:
@@ -36,7 +36,7 @@ use function substr;
|
||||
final class Integer implements NumberInterface
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
* @psalm-var numeric-string
|
||||
*/
|
||||
private $value;
|
||||
|
||||
@@ -80,7 +80,10 @@ final class Integer implements NumberInterface
|
||||
$this->isNegative = true;
|
||||
}
|
||||
|
||||
$this->value = $value;
|
||||
/** @psalm-var numeric-string $numericValue */
|
||||
$numericValue = $value;
|
||||
|
||||
$this->value = $numericValue;
|
||||
}
|
||||
|
||||
public function isNegative(): bool
|
||||
@@ -88,6 +91,9 @@ final class Integer implements NumberInterface
|
||||
return $this->isNegative;
|
||||
}
|
||||
|
||||
/**
|
||||
* @psalm-return numeric-string
|
||||
*/
|
||||
public function toString(): string
|
||||
{
|
||||
return $this->value;
|
||||
|
||||
Reference in New Issue
Block a user