@@ -2217,39 +2217,47 @@ public function testBug13065(): void
22172217
22182218 public function testBug5760 (): void
22192219 {
2220+ if (PHP_VERSION_ID < 80000 ) {
2221+ $ param1Name = '$glue ' ;
2222+ $ param2Name = '$pieces ' ;
2223+ } else {
2224+ $ param1Name = '$separator ' ;
2225+ $ param2Name = '$array ' ;
2226+ }
2227+
22202228 $ this ->checkExplicitMixed = true ;
22212229 $ this ->checkImplicitMixed = true ;
22222230 $ this ->analyse ([__DIR__ . '/data/bug-5760.php ' ], [
22232231 [
2224- ' Parameter #2 $pieces of function join expects array, list<int>|null given. ' ,
2232+ " Parameter #2 { $ param2Name } of function join expects array, list<int>|null given. " ,
22252233 10 ,
22262234 ],
22272235 [
2228- ' Parameter #1 $glue of function join expects array, list<int>|null given. ' ,
2236+ " Parameter #1 { $ param1Name } of function join expects array, list<int>|null given. " ,
22292237 11 ,
22302238 ],
22312239 [
2232- ' Parameter #2 $array of function implode expects array, list<int>|null given. ' ,
2240+ " Parameter #2 { $ param2Name } of function implode expects array, list<int>|null given. " ,
22332241 13 ,
22342242 ],
22352243 [
2236- ' Parameter #1 $separator of function implode expects array, list<int>|null given. ' ,
2244+ " Parameter #1 { $ param1Name } of function implode expects array, list<int>|null given. " ,
22372245 14 ,
22382246 ],
22392247 [
2240- ' Parameter #2 $pieces of function join expects array, array<string>|string given. ' ,
2248+ " Parameter #2 { $ param2Name } of function join expects array, array<string>|string given. " ,
22412249 22 ,
22422250 ],
22432251 [
2244- ' Parameter #1 $glue of function join expects array, array<string>|string given. ' ,
2252+ " Parameter #1 { $ param1Name } of function join expects array, array<string>|string given. " ,
22452253 23 ,
22462254 ],
22472255 [
2248- ' Parameter #2 $array of function implode expects array, array<string>|string given. ' ,
2256+ " Parameter #2 { $ param2Name } of function implode expects array, array<string>|string given. " ,
22492257 25 ,
22502258 ],
22512259 [
2252- ' Parameter #1 $separator of function implode expects array, array<string>|string given. ' ,
2260+ " Parameter #1 { $ param1Name } of function implode expects array, array<string>|string given. " ,
22532261 26 ,
22542262 ],
22552263 ]);
0 commit comments