@@ -201,7 +201,7 @@ public function testPrepArgs(): void
201201
202202 $ this ->assertSame (
203203 $ expected ,
204- $ this ->table ->prepArgs (['name ' , 'color ' , 'size ' ]),
204+ $ this ->table ->prepArgs (['name ' , 'color ' , 'size ' ]), // @phpstan-ignore method.notFound (Testing MockTable::__call() fallback)
205205 );
206206
207207 // with cell attributes
@@ -213,7 +213,7 @@ public function testPrepArgs(): void
213213
214214 $ this ->assertSame (
215215 $ expected ,
216- $ this ->table ->prepArgs (['name ' , 'color ' , 'size ' , ['data ' => 'weight ' , 'class ' => 'awesome ' ]]),
216+ $ this ->table ->prepArgs (['name ' , 'color ' , 'size ' , ['data ' => 'weight ' , 'class ' => 'awesome ' ]]), // @phpstan-ignore method.notFound (Testing MockTable::__call() fallback)
217217 );
218218 }
219219
@@ -241,7 +241,7 @@ public function testDefaultTemplateKeys(): void
241241 ];
242242
243243 foreach ($ keys as $ key ) {
244- $ this ->assertArrayHasKey ($ key , $ this ->table ->defaultTemplate ());
244+ $ this ->assertArrayHasKey ($ key , $ this ->table ->defaultTemplate ()); // @phpstan-ignore method.notFound (Testing MockTable::__call() fallback)
245245 }
246246 }
247247
@@ -251,14 +251,14 @@ public function testCompileTemplate(): void
251251
252252 // non default key
253253 $ this ->table ->setTemplate (['nonsense ' => 'foo ' ]);
254- $ this ->table ->compileTemplate ();
254+ $ this ->table ->compileTemplate (); // @phpstan-ignore method.notFound (Testing MockTable::__call() fallback)
255255
256256 $ this ->assertArrayHasKey ('nonsense ' , $ this ->table ->template );
257257 $ this ->assertSame ('foo ' , $ this ->table ->template ['nonsense ' ]);
258258
259259 // override default
260260 $ this ->table ->setTemplate (['table_close ' => '</table junk> ' ]);
261- $ this ->table ->compileTemplate ();
261+ $ this ->table ->compileTemplate (); // @phpstan-ignore method.notFound (Testing MockTable::__call() fallback)
262262
263263 $ this ->assertArrayHasKey ('table_close ' , $ this ->table ->template );
264264 $ this ->assertSame ('</table junk> ' , $ this ->table ->template ['table_close ' ]);
@@ -267,9 +267,9 @@ public function testCompileTemplate(): void
267267 public function testMakeColumns (): void
268268 {
269269 // Test bogus parameters
270- $ this ->assertFalse ($ this ->table ->makeColumns ('invalid_junk ' ));
270+ $ this ->assertFalse ($ this ->table ->makeColumns ('invalid_junk ' )); // @phpstan-ignore argument.type (deliberately wrong type)
271271 $ this ->assertFalse ($ this ->table ->makeColumns ([]));
272- $ this ->assertFalse ($ this ->table ->makeColumns (['one ' , 'two ' ], '2.5 ' ));
272+ $ this ->assertFalse ($ this ->table ->makeColumns (['one ' , 'two ' ], '2.5 ' )); // @phpstan-ignore argument.type (deliberately wrong type)
273273
274274 // Now on to the actual column creation
275275
@@ -345,12 +345,12 @@ public function testSetFromArray(): void
345345 ];
346346
347347 $ this ->table ->autoHeading = false ;
348- $ this ->table ->setFromArray ($ data );
348+ $ this ->table ->setFromArray ($ data ); // @phpstan-ignore method.notFound (Testing MockTable::__call() fallback)
349349 $ this ->assertEmpty ($ this ->table ->heading );
350350
351351 $ this ->table ->clear ();
352352
353- $ this ->table ->setFromArray ($ data );
353+ $ this ->table ->setFromArray ($ data ); // @phpstan-ignore method.notFound (Testing MockTable::__call() fallback)
354354 $ this ->assertCount (2 , $ this ->table ->rows );
355355
356356 $ expected = [
@@ -376,9 +376,9 @@ public function testSetFromObject(): void
376376 $ dummy ->connID = null ;
377377 $ dummy ->resultID = null ;
378378
379- $ DBResult = new DBResultDummy ($ dummy ->connID , $ dummy ->resultID );
379+ $ DBResult = new DBResultDummy ($ dummy ->connID , $ dummy ->resultID ); // @phpstan-ignore argument.type, argument.type (deliberately null, exercising the fallback path)
380380
381- $ this ->table ->setFromDBResult ($ DBResult );
381+ $ this ->table ->setFromDBResult ($ DBResult ); // @phpstan-ignore method.notFound (Testing MockTable::__call() fallback)
382382
383383 $ expected = [
384384 ['data ' => 'name ' ],
@@ -733,7 +733,7 @@ public function testGenerateFromDBResult(): void
733733 $ dummy = new stdClass ();
734734 $ dummy ->connID = null ;
735735 $ dummy ->resultID = null ;
736- $ DBResult = new DBResultDummy ($ dummy ->connID , $ dummy ->resultID );
736+ $ DBResult = new DBResultDummy ($ dummy ->connID , $ dummy ->resultID ); // @phpstan-ignore argument.type, argument.type (deliberately null, exercising the fallback path)
737737
738738 $ table = $ this ->table ->generate ($ DBResult );
739739
@@ -780,6 +780,10 @@ public function testInvalidCallback(): void
780780 $ this ->assertStringContainsString ('<td>Fred</td><td><strong>Blue</strong></td><td>Small</td> ' , $ generated );
781781 }
782782
783+ /**
784+ * @param array<string, string> $heading
785+ * @param array<string, int|string> $row
786+ */
783787 #[DataProvider('orderedColumnUsecases ' )]
784788 public function testAddRowAndGenerateOrderedColumns (array $ heading , array $ row , string $ expectContainsString ): void
785789 {
@@ -792,6 +796,10 @@ public function testAddRowAndGenerateOrderedColumns(array $heading, array $row,
792796 $ this ->assertStringContainsString ($ expectContainsString , $ generated );
793797 }
794798
799+ /**
800+ * @param array<string, string> $heading
801+ * @param array<string, int|string> $row
802+ */
795803 #[DataProvider('orderedColumnUsecases ' )]
796804 public function testGenerateOrderedColumns (array $ heading , array $ row , string $ expectContainsString ): void
797805 {
@@ -803,6 +811,9 @@ public function testGenerateOrderedColumns(array $heading, array $row, string $e
803811 $ this ->assertStringContainsString ($ expectContainsString , $ generated );
804812 }
805813
814+ /**
815+ * @return iterable<string, array{heading: array<string, string>, row: array<string, int|string>, expectContainsString: string}>
816+ */
806817 public static function orderedColumnUsecases (): iterable
807818 {
808819 yield from [
0 commit comments