From 0194fff2718fbae687581f981d3eb779e3ac472c Mon Sep 17 00:00:00 2001 From: faissaloux Date: Sat, 30 Mar 2024 01:27:23 +0000 Subject: [PATCH] phpstan annotation --- src/Type.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Type.php b/src/Type.php index a9306b1..4143490 100644 --- a/src/Type.php +++ b/src/Type.php @@ -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 {