File tree 2 files changed +25
-2
lines changed
2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 24
24
"prefer-stable" : true ,
25
25
"require" : {
26
26
"php" : " >=8.0" ,
27
- "php-static-analysis/attributes" : " ^0.1 || dev-main" ,
28
- "php-static-analysis/node-visitor" : " ^0.1 || dev-main" ,
27
+ "php-static-analysis/attributes" : " ^0.1.1 || dev-main" ,
28
+ "php-static-analysis/node-visitor" : " ^0.1.1 || dev-main" ,
29
29
"phpstan/phpstan" : " ^1.8"
30
30
},
31
31
"require-dev" : {
Original file line number Diff line number Diff line change @@ -65,4 +65,27 @@ public function countNamesAndNames(array $names): int
65
65
{
66
66
return count ($ names );
67
67
}
68
+
69
+ public function countNamesInParam (
70
+ #[Param('string[] ' )]
71
+ array $ names
72
+ ): int {
73
+ return count ($ names );
74
+ }
75
+
76
+ public function countNamesInParamWithName (
77
+ #[Param(names: 'string[] ' )]
78
+ array $ names
79
+ ): int {
80
+ return count ($ names );
81
+ }
82
+
83
+ public function countNamesInTwoParams (
84
+ #[Param('string[] ' )]
85
+ array $ names1 ,
86
+ #[Param('string[] ' )]
87
+ array $ names2
88
+ ): int {
89
+ return count ($ names1 ) + count ($ names2 );
90
+ }
68
91
}
You can’t perform that action at this time.
0 commit comments