@@ -21,7 +21,7 @@ class ScalarValuesTest extends TestCase
2121 /**
2222 * @dataProvider getTestContainsOnlyScalarValuesProdiver
2323 */
24- public function testContainsOnlyScalarValues ($ input , $ expected ): void
24+ public function testContainsOnlyScalarValues (array $ input , bool $ expected ): void
2525 {
2626 $ this ->assertEquals (
2727 $ expected ,
@@ -49,12 +49,14 @@ public function getTestContainsOnlyScalarValuesProdiver(): array
4949 }
5050
5151 /**
52+ * @param mixed $input
53+ *
5254 * @dataProvider getNotArrayInputProdiver
5355 */
5456 public function testContainsOnlyScalarValuesInputError ($ input ): void
5557 {
5658 $ this ->expectException (\TypeError::class);
57- ScalarValues::containsOnlyScalarValues ($ input );
59+ ScalarValues::containsOnlyScalarValues ($ input ); // @phpstan-ignore-line
5860 }
5961
6062 public function getNotArrayInputProdiver (): array
@@ -71,7 +73,7 @@ public function getNotArrayInputProdiver(): array
7173 /**
7274 * @dataProvider getTestFilterScalarValuesProdiver
7375 */
74- public function testFilterScalarValues ($ input , $ expected ): void
76+ public function testFilterScalarValues (array $ input , array $ expected ): void
7577 {
7678 $ this ->assertEquals (
7779 $ expected ,
@@ -99,11 +101,13 @@ public function getTestFilterScalarValuesProdiver(): array
99101 }
100102
101103 /**
104+ * @param mixed $input
105+ *
102106 * @dataProvider getNotArrayInputProdiver
103107 */
104108 public function testFilterScalarValuesInputError ($ input ): void
105109 {
106110 $ this ->expectException (\TypeError::class);
107- ScalarValues::filterScalarValues ($ input );
111+ ScalarValues::filterScalarValues ($ input ); // @phpstan-ignore-line
108112 }
109113}
0 commit comments