Skip to content

Commit 76d11de

Browse files
committed
docs: fix Commands
1 parent 3e4b23b commit 76d11de

File tree

2 files changed

+2
-70
lines changed

2 files changed

+2
-70
lines changed

phpstan-baseline.php

Lines changed: 0 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -706,121 +706,61 @@
706706
'count' => 1,
707707
'path' => __DIR__ . '/system/Commands/Encryption/GenerateKey.php',
708708
];
709-
$ignoreErrors[] = [
710-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\CellGenerator\\:\\:renderTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
711-
'count' => 1,
712-
'path' => __DIR__ . '/system/Commands/Generators/CellGenerator.php',
713-
];
714709
$ignoreErrors[] = [
715710
'message' => '#^Property CodeIgniter\\\\Commands\\\\Generators\\\\CellGenerator\\:\\:\\$params type has no value type specified in iterable type array\\.$#',
716711
'count' => 1,
717712
'path' => __DIR__ . '/system/Commands/Generators/CellGenerator.php',
718713
];
719-
$ignoreErrors[] = [
720-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\CommandGenerator\\:\\:renderTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
721-
'count' => 1,
722-
'path' => __DIR__ . '/system/Commands/Generators/CommandGenerator.php',
723-
];
724714
$ignoreErrors[] = [
725715
'message' => '#^Property CodeIgniter\\\\Commands\\\\Generators\\\\CommandGenerator\\:\\:\\$params type has no value type specified in iterable type array\\.$#',
726716
'count' => 1,
727717
'path' => __DIR__ . '/system/Commands/Generators/CommandGenerator.php',
728718
];
729-
$ignoreErrors[] = [
730-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\ConfigGenerator\\:\\:renderTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
731-
'count' => 1,
732-
'path' => __DIR__ . '/system/Commands/Generators/ConfigGenerator.php',
733-
];
734719
$ignoreErrors[] = [
735720
'message' => '#^Property CodeIgniter\\\\Commands\\\\Generators\\\\ConfigGenerator\\:\\:\\$params type has no value type specified in iterable type array\\.$#',
736721
'count' => 1,
737722
'path' => __DIR__ . '/system/Commands/Generators/ConfigGenerator.php',
738723
];
739-
$ignoreErrors[] = [
740-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\ControllerGenerator\\:\\:renderTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
741-
'count' => 1,
742-
'path' => __DIR__ . '/system/Commands/Generators/ControllerGenerator.php',
743-
];
744724
$ignoreErrors[] = [
745725
'message' => '#^Property CodeIgniter\\\\Commands\\\\Generators\\\\ControllerGenerator\\:\\:\\$params type has no value type specified in iterable type array\\.$#',
746726
'count' => 1,
747727
'path' => __DIR__ . '/system/Commands/Generators/ControllerGenerator.php',
748728
];
749-
$ignoreErrors[] = [
750-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\EntityGenerator\\:\\:renderTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
751-
'count' => 1,
752-
'path' => __DIR__ . '/system/Commands/Generators/EntityGenerator.php',
753-
];
754729
$ignoreErrors[] = [
755730
'message' => '#^Property CodeIgniter\\\\Commands\\\\Generators\\\\EntityGenerator\\:\\:\\$params type has no value type specified in iterable type array\\.$#',
756731
'count' => 1,
757732
'path' => __DIR__ . '/system/Commands/Generators/EntityGenerator.php',
758733
];
759-
$ignoreErrors[] = [
760-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\FilterGenerator\\:\\:renderTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
761-
'count' => 1,
762-
'path' => __DIR__ . '/system/Commands/Generators/FilterGenerator.php',
763-
];
764734
$ignoreErrors[] = [
765735
'message' => '#^Property CodeIgniter\\\\Commands\\\\Generators\\\\FilterGenerator\\:\\:\\$params type has no value type specified in iterable type array\\.$#',
766736
'count' => 1,
767737
'path' => __DIR__ . '/system/Commands/Generators/FilterGenerator.php',
768738
];
769-
$ignoreErrors[] = [
770-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\MigrationGenerator\\:\\:renderTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
771-
'count' => 1,
772-
'path' => __DIR__ . '/system/Commands/Generators/MigrationGenerator.php',
773-
];
774739
$ignoreErrors[] = [
775740
'message' => '#^Property CodeIgniter\\\\Commands\\\\Generators\\\\MigrationGenerator\\:\\:\\$params type has no value type specified in iterable type array\\.$#',
776741
'count' => 1,
777742
'path' => __DIR__ . '/system/Commands/Generators/MigrationGenerator.php',
778743
];
779-
$ignoreErrors[] = [
780-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\ModelGenerator\\:\\:renderTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
781-
'count' => 1,
782-
'path' => __DIR__ . '/system/Commands/Generators/ModelGenerator.php',
783-
];
784744
$ignoreErrors[] = [
785745
'message' => '#^Property CodeIgniter\\\\Commands\\\\Generators\\\\ModelGenerator\\:\\:\\$params type has no value type specified in iterable type array\\.$#',
786746
'count' => 1,
787747
'path' => __DIR__ . '/system/Commands/Generators/ModelGenerator.php',
788748
];
789-
$ignoreErrors[] = [
790-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\ScaffoldGenerator\\:\\:renderTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
791-
'count' => 1,
792-
'path' => __DIR__ . '/system/Commands/Generators/ScaffoldGenerator.php',
793-
];
794749
$ignoreErrors[] = [
795750
'message' => '#^Property CodeIgniter\\\\Commands\\\\Generators\\\\ScaffoldGenerator\\:\\:\\$params type has no value type specified in iterable type array\\.$#',
796751
'count' => 1,
797752
'path' => __DIR__ . '/system/Commands/Generators/ScaffoldGenerator.php',
798753
];
799-
$ignoreErrors[] = [
800-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\SeederGenerator\\:\\:renderTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
801-
'count' => 1,
802-
'path' => __DIR__ . '/system/Commands/Generators/SeederGenerator.php',
803-
];
804754
$ignoreErrors[] = [
805755
'message' => '#^Property CodeIgniter\\\\Commands\\\\Generators\\\\SeederGenerator\\:\\:\\$params type has no value type specified in iterable type array\\.$#',
806756
'count' => 1,
807757
'path' => __DIR__ . '/system/Commands/Generators/SeederGenerator.php',
808758
];
809-
$ignoreErrors[] = [
810-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\TestGenerator\\:\\:renderTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
811-
'count' => 1,
812-
'path' => __DIR__ . '/system/Commands/Generators/TestGenerator.php',
813-
];
814759
$ignoreErrors[] = [
815760
'message' => '#^Property CodeIgniter\\\\Commands\\\\Generators\\\\TestGenerator\\:\\:\\$params type has no value type specified in iterable type array\\.$#',
816761
'count' => 1,
817762
'path' => __DIR__ . '/system/Commands/Generators/TestGenerator.php',
818763
];
819-
$ignoreErrors[] = [
820-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\ValidationGenerator\\:\\:renderTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
821-
'count' => 1,
822-
'path' => __DIR__ . '/system/Commands/Generators/ValidationGenerator.php',
823-
];
824764
$ignoreErrors[] = [
825765
'message' => '#^Property CodeIgniter\\\\Commands\\\\Generators\\\\ValidationGenerator\\:\\:\\$params type has no value type specified in iterable type array\\.$#',
826766
'count' => 1,
@@ -9371,11 +9311,6 @@
93719311
'count' => 1,
93729312
'path' => __DIR__ . '/tests/_support/Cells/StarterCell.php',
93739313
];
9374-
$ignoreErrors[] = [
9375-
'message' => '#^Method Tests\\\\Support\\\\Commands\\\\LanguageCommand\\:\\:renderTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
9376-
'count' => 1,
9377-
'path' => __DIR__ . '/tests/_support/Commands/LanguageCommand.php',
9378-
];
93799314
$ignoreErrors[] = [
93809315
'message' => '#^Property Tests\\\\Support\\\\Commands\\\\LanguageCommand\\:\\:\\$params type has no value type specified in iterable type array\\.$#',
93819316
'count' => 1,
@@ -9391,11 +9326,6 @@
93919326
'count' => 1,
93929327
'path' => __DIR__ . '/tests/_support/Commands/ParamsReveal.php',
93939328
];
9394-
$ignoreErrors[] = [
9395-
'message' => '#^Method Tests\\\\Support\\\\Commands\\\\Unsuffixable\\:\\:renderTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
9396-
'count' => 1,
9397-
'path' => __DIR__ . '/tests/_support/Commands/Unsuffixable.php',
9398-
];
93999329
$ignoreErrors[] = [
94009330
'message' => '#^Property Tests\\\\Support\\\\Commands\\\\Unsuffixable\\:\\:\\$params type has no value type specified in iterable type array\\.$#',
94019331
'count' => 1,

system/CLI/GeneratorTrait.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,8 @@ private function normalizeInputClassName(): string
336336
/**
337337
* Gets the generator view as defined in the `Config\Generators::$views`,
338338
* with fallback to `$template` when the defined view does not exist.
339+
*
340+
* @param array<string, bool|string|null> $data
339341
*/
340342
protected function renderTemplate(array $data = []): string
341343
{

0 commit comments

Comments
 (0)