@@ -2481,39 +2481,39 @@ public function testBug6560(string $fileName): void
24812481
24822482 $ this ->analyse ([__DIR__ . '/data/ ' . $ fileName ], [
24832483 [
2484- sprintf ('Parameter #1 %s of function strval expects bool|float|int|resource|string|null, array given. ' , $ varName ),
2484+ sprintf ('Parameter #1 %s of function strval expects bool|float|GMP| int|resource|string|null, array given. ' , $ varName ),
24852485 23 ,
24862486 ],
24872487 [
2488- sprintf ('Parameter #1 %s of function strval expects bool|float|int|resource|string|null, stdClass given. ' , $ varName ),
2488+ sprintf ('Parameter #1 %s of function strval expects bool|float|GMP| int|resource|string|null, stdClass given. ' , $ varName ),
24892489 77 ,
24902490 ],
24912491 [
2492- sprintf ('Parameter #1 %s of function intval expects array|bool|float|int|resource|string|null, stdClass given. ' , $ varName ),
2492+ sprintf ('Parameter #1 %s of function intval expects array|bool|float|GMP| int|resource|SimpleXMLElement |string|null, stdClass given. ' , $ varName ),
24932493 80 ,
24942494 ],
24952495 [
2496- sprintf ('Parameter #1 %s of function floatval expects array|bool|float|int|resource|string|null, stdClass given. ' , $ varName ),
2496+ sprintf ('Parameter #1 %s of function floatval expects array|bool|float|GMP| int|resource|SimpleXMLElement |string|null, stdClass given. ' , $ varName ),
24972497 83 ,
24982498 ],
24992499 [
2500- sprintf ('Parameter #1 %s of function intval expects array|bool|float|int|resource|string|null, %s@anonymous/tests/PHPStan/Rules/Functions/data/ ' . $ fileName . ':13 given. ' , $ varName , $ stringableName ),
2500+ sprintf ('Parameter #1 %s of function intval expects array|bool|float|GMP| int|resource|SimpleXMLElement |string|null, %s@anonymous/tests/PHPStan/Rules/Functions/data/ ' . $ fileName . ':13 given. ' , $ varName , $ stringableName ),
25012501 89 ,
25022502 ],
25032503 [
2504- sprintf ('Parameter #1 %s of function floatval expects array|bool|float|int|resource|string|null, %s@anonymous/tests/PHPStan/Rules/Functions/data/ ' . $ fileName . ':13 given. ' , $ varName , $ stringableName ),
2504+ sprintf ('Parameter #1 %s of function floatval expects array|bool|float|GMP| int|resource|SimpleXMLElement |string|null, %s@anonymous/tests/PHPStan/Rules/Functions/data/ ' . $ fileName . ':13 given. ' , $ varName , $ stringableName ),
25052505 92 ,
25062506 ],
25072507 [
2508- sprintf ('Parameter #1 %s of function strval expects bool|float|int|resource|string|null, mixed given. ' , $ varName ),
2508+ sprintf ('Parameter #1 %s of function strval expects bool|float|GMP| int|resource|string|null, mixed given. ' , $ varName ),
25092509 95 ,
25102510 ],
25112511 [
2512- sprintf ('Parameter #1 %s of function intval expects array|bool|float|int|resource|string|null, mixed given. ' , $ varName ),
2512+ sprintf ('Parameter #1 %s of function intval expects array|bool|float|GMP| int|resource|SimpleXMLElement |string|null, mixed given. ' , $ varName ),
25132513 98 ,
25142514 ],
25152515 [
2516- sprintf ('Parameter #1 %s of function floatval expects array|bool|float|int|resource|string|null, mixed given. ' , $ varName ),
2516+ sprintf ('Parameter #1 %s of function floatval expects array|bool|float|GMP| int|resource|SimpleXMLElement |string|null, mixed given. ' , $ varName ),
25172517 101 ,
25182518 ],
25192519 ]);
@@ -2680,16 +2680,7 @@ public function testBug9652(): void
26802680
26812681 public function testBug14136 (): void
26822682 {
2683- $ this ->analyse ([__DIR__ . '/data/bug-14136.php ' ], [
2684- [
2685- 'Parameter #1 $value of function intval expects array|bool|float|GMP|int|resource|SimpleXMLElement|string|null, BcMath\Number given. ' ,
2686- 12 ,
2687- ],
2688- [
2689- 'Parameter #1 $value of function floatval expects array|bool|float|GMP|int|resource|SimpleXMLElement|string|null, BcMath\Number given. ' ,
2690- 19 ,
2691- ],
2692- ]);
2683+ $ this ->analyse ([__DIR__ . '/data/bug-14136.php ' ], []);
26932684 }
26942685
26952686 #[RequiresPhp('>= 8.1 ' )]
0 commit comments