Skip to content

Commit

Permalink
phpstan annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
faissaloux committed Mar 30, 2024
1 parent c5beaee commit 0194fff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ public function asString(): string

/**
* Asserts and narrow down the type to numeric.
*
* @phpstan-assert-if-true int|float|numeric-string $this->variable
*/
public function asNumeric(): int|float|string
{
Expand Down

0 comments on commit 0194fff

Please sign in to comment.