We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d267c73 commit 48f5adaCopy full SHA for 48f5ada
tests/PHPStan/Analyser/nsrt/bug-13749.php
@@ -46,4 +46,24 @@ public function sayNonFalsy(string $s, string $nonFalsy): void
46
}
47
48
49
+ /**
50
+ * @param non-empty-array $nonEmptyArr
51
+ */
52
+ public function sayCount(array $arr, array $nonEmptyArr): void
53
+ {
54
+ if (count($arr) === count($nonEmptyArr)) {
55
+ assertType('non-empty-array', $arr);
56
+ assertType('non-empty-array', $nonEmptyArr);
57
+ }
58
+ assertType('array', $arr);
59
60
+
61
+ if (count($nonEmptyArr) === count($arr)) {
62
63
64
65
66
67
68
69
0 commit comments