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 a769ebe commit 41019baCopy full SHA for 41019ba
tests/PHPStan/Rules/Classes/data/named-arguments-phpversion.php
@@ -31,3 +31,27 @@ public function sayHello(): array|null
31
];
32
}
33
34
+
35
+class HelloWorld3
36
+{
37
+ /** @return mixed[] */
38
+ public function sayHello(): array|null
39
+ {
40
+ return [
41
+ PHP_VERSION_ID >= 70400 ? 1 : 0,
42
+ new Exception(previous: new Exception()),
43
+ ];
44
+ }
45
+}
46
47
+class HelloWorld4
48
49
50
51
52
53
+ PHP_VERSION_ID < 80000 ? 1 : 0,
54
55
56
57
0 commit comments