File tree 1 file changed +40
-0
lines changed
1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -23,4 +23,44 @@ class Assert
23
23
*/
24
24
public static function isNonEmptyMap($array, $message = ''): void;
25
25
26
+ /**
27
+ * @phpstan-assert int|numeric-string $value
28
+ *
29
+ * @param mixed $value
30
+ * @param string $message
31
+ *
32
+ * @throws InvalidArgumentException
33
+ */
34
+ public static function integerish($value, $message = ''): void;
35
+
36
+ /**
37
+ * @phpstan-assert int|numeric-string|null $value
38
+ *
39
+ * @param mixed $value
40
+ * @param string $message
41
+ *
42
+ * @throws InvalidArgumentException
43
+ */
44
+ public static function nullOrIntegerish($value, $message = ''): void;
45
+
46
+ /**
47
+ * @phpstan-assert iterable<int|numeric-string> $value
48
+ *
49
+ * @param mixed $value
50
+ * @param string $message
51
+ *
52
+ * @throws InvalidArgumentException
53
+ */
54
+ public static function allIntegerish($value, $message = ''): void;
55
+
56
+ /**
57
+ * @phpstan-assert iterable<int|numeric-string|null> $value
58
+ *
59
+ * @param mixed $value
60
+ * @param string $message
61
+ *
62
+ * @throws InvalidArgumentException
63
+ */
64
+ public static function allNullOrIntegerish($value, $message = ''): void;
65
+
26
66
}
You can’t perform that action at this time.
0 commit comments