Skip to content

Commit 3e4b23b

Browse files
committed
docs: fix Commands
1 parent 7532ae1 commit 3e4b23b

File tree

2 files changed

+4
-211
lines changed

2 files changed

+4
-211
lines changed

phpstan-baseline.php

Lines changed: 0 additions & 210 deletions
Original file line numberDiff line numberDiff line change
@@ -706,21 +706,6 @@
706706
'count' => 1,
707707
'path' => __DIR__ . '/system/Commands/Encryption/GenerateKey.php',
708708
];
709-
$ignoreErrors[] = [
710-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\CellGenerator\\:\\:parseTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
711-
'count' => 1,
712-
'path' => __DIR__ . '/system/Commands/Generators/CellGenerator.php',
713-
];
714-
$ignoreErrors[] = [
715-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\CellGenerator\\:\\:parseTemplate\\(\\) has parameter \\$replace with no value type specified in iterable type array\\.$#',
716-
'count' => 1,
717-
'path' => __DIR__ . '/system/Commands/Generators/CellGenerator.php',
718-
];
719-
$ignoreErrors[] = [
720-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\CellGenerator\\:\\:parseTemplate\\(\\) has parameter \\$search with no value type specified in iterable type array\\.$#',
721-
'count' => 1,
722-
'path' => __DIR__ . '/system/Commands/Generators/CellGenerator.php',
723-
];
724709
$ignoreErrors[] = [
725710
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\CellGenerator\\:\\:renderTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
726711
'count' => 1,
@@ -731,21 +716,6 @@
731716
'count' => 1,
732717
'path' => __DIR__ . '/system/Commands/Generators/CellGenerator.php',
733718
];
734-
$ignoreErrors[] = [
735-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\CommandGenerator\\:\\:parseTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
736-
'count' => 1,
737-
'path' => __DIR__ . '/system/Commands/Generators/CommandGenerator.php',
738-
];
739-
$ignoreErrors[] = [
740-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\CommandGenerator\\:\\:parseTemplate\\(\\) has parameter \\$replace with no value type specified in iterable type array\\.$#',
741-
'count' => 1,
742-
'path' => __DIR__ . '/system/Commands/Generators/CommandGenerator.php',
743-
];
744-
$ignoreErrors[] = [
745-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\CommandGenerator\\:\\:parseTemplate\\(\\) has parameter \\$search with no value type specified in iterable type array\\.$#',
746-
'count' => 1,
747-
'path' => __DIR__ . '/system/Commands/Generators/CommandGenerator.php',
748-
];
749719
$ignoreErrors[] = [
750720
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\CommandGenerator\\:\\:renderTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
751721
'count' => 1,
@@ -756,21 +726,6 @@
756726
'count' => 1,
757727
'path' => __DIR__ . '/system/Commands/Generators/CommandGenerator.php',
758728
];
759-
$ignoreErrors[] = [
760-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\ConfigGenerator\\:\\:parseTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
761-
'count' => 1,
762-
'path' => __DIR__ . '/system/Commands/Generators/ConfigGenerator.php',
763-
];
764-
$ignoreErrors[] = [
765-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\ConfigGenerator\\:\\:parseTemplate\\(\\) has parameter \\$replace with no value type specified in iterable type array\\.$#',
766-
'count' => 1,
767-
'path' => __DIR__ . '/system/Commands/Generators/ConfigGenerator.php',
768-
];
769-
$ignoreErrors[] = [
770-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\ConfigGenerator\\:\\:parseTemplate\\(\\) has parameter \\$search with no value type specified in iterable type array\\.$#',
771-
'count' => 1,
772-
'path' => __DIR__ . '/system/Commands/Generators/ConfigGenerator.php',
773-
];
774729
$ignoreErrors[] = [
775730
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\ConfigGenerator\\:\\:renderTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
776731
'count' => 1,
@@ -781,21 +736,6 @@
781736
'count' => 1,
782737
'path' => __DIR__ . '/system/Commands/Generators/ConfigGenerator.php',
783738
];
784-
$ignoreErrors[] = [
785-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\ControllerGenerator\\:\\:parseTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
786-
'count' => 1,
787-
'path' => __DIR__ . '/system/Commands/Generators/ControllerGenerator.php',
788-
];
789-
$ignoreErrors[] = [
790-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\ControllerGenerator\\:\\:parseTemplate\\(\\) has parameter \\$replace with no value type specified in iterable type array\\.$#',
791-
'count' => 1,
792-
'path' => __DIR__ . '/system/Commands/Generators/ControllerGenerator.php',
793-
];
794-
$ignoreErrors[] = [
795-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\ControllerGenerator\\:\\:parseTemplate\\(\\) has parameter \\$search with no value type specified in iterable type array\\.$#',
796-
'count' => 1,
797-
'path' => __DIR__ . '/system/Commands/Generators/ControllerGenerator.php',
798-
];
799739
$ignoreErrors[] = [
800740
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\ControllerGenerator\\:\\:renderTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
801741
'count' => 1,
@@ -806,21 +746,6 @@
806746
'count' => 1,
807747
'path' => __DIR__ . '/system/Commands/Generators/ControllerGenerator.php',
808748
];
809-
$ignoreErrors[] = [
810-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\EntityGenerator\\:\\:parseTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
811-
'count' => 1,
812-
'path' => __DIR__ . '/system/Commands/Generators/EntityGenerator.php',
813-
];
814-
$ignoreErrors[] = [
815-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\EntityGenerator\\:\\:parseTemplate\\(\\) has parameter \\$replace with no value type specified in iterable type array\\.$#',
816-
'count' => 1,
817-
'path' => __DIR__ . '/system/Commands/Generators/EntityGenerator.php',
818-
];
819-
$ignoreErrors[] = [
820-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\EntityGenerator\\:\\:parseTemplate\\(\\) has parameter \\$search with no value type specified in iterable type array\\.$#',
821-
'count' => 1,
822-
'path' => __DIR__ . '/system/Commands/Generators/EntityGenerator.php',
823-
];
824749
$ignoreErrors[] = [
825750
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\EntityGenerator\\:\\:renderTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
826751
'count' => 1,
@@ -831,21 +756,6 @@
831756
'count' => 1,
832757
'path' => __DIR__ . '/system/Commands/Generators/EntityGenerator.php',
833758
];
834-
$ignoreErrors[] = [
835-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\FilterGenerator\\:\\:parseTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
836-
'count' => 1,
837-
'path' => __DIR__ . '/system/Commands/Generators/FilterGenerator.php',
838-
];
839-
$ignoreErrors[] = [
840-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\FilterGenerator\\:\\:parseTemplate\\(\\) has parameter \\$replace with no value type specified in iterable type array\\.$#',
841-
'count' => 1,
842-
'path' => __DIR__ . '/system/Commands/Generators/FilterGenerator.php',
843-
];
844-
$ignoreErrors[] = [
845-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\FilterGenerator\\:\\:parseTemplate\\(\\) has parameter \\$search with no value type specified in iterable type array\\.$#',
846-
'count' => 1,
847-
'path' => __DIR__ . '/system/Commands/Generators/FilterGenerator.php',
848-
];
849759
$ignoreErrors[] = [
850760
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\FilterGenerator\\:\\:renderTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
851761
'count' => 1,
@@ -856,21 +766,6 @@
856766
'count' => 1,
857767
'path' => __DIR__ . '/system/Commands/Generators/FilterGenerator.php',
858768
];
859-
$ignoreErrors[] = [
860-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\MigrationGenerator\\:\\:parseTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
861-
'count' => 1,
862-
'path' => __DIR__ . '/system/Commands/Generators/MigrationGenerator.php',
863-
];
864-
$ignoreErrors[] = [
865-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\MigrationGenerator\\:\\:parseTemplate\\(\\) has parameter \\$replace with no value type specified in iterable type array\\.$#',
866-
'count' => 1,
867-
'path' => __DIR__ . '/system/Commands/Generators/MigrationGenerator.php',
868-
];
869-
$ignoreErrors[] = [
870-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\MigrationGenerator\\:\\:parseTemplate\\(\\) has parameter \\$search with no value type specified in iterable type array\\.$#',
871-
'count' => 1,
872-
'path' => __DIR__ . '/system/Commands/Generators/MigrationGenerator.php',
873-
];
874769
$ignoreErrors[] = [
875770
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\MigrationGenerator\\:\\:renderTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
876771
'count' => 1,
@@ -881,21 +776,6 @@
881776
'count' => 1,
882777
'path' => __DIR__ . '/system/Commands/Generators/MigrationGenerator.php',
883778
];
884-
$ignoreErrors[] = [
885-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\ModelGenerator\\:\\:parseTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
886-
'count' => 1,
887-
'path' => __DIR__ . '/system/Commands/Generators/ModelGenerator.php',
888-
];
889-
$ignoreErrors[] = [
890-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\ModelGenerator\\:\\:parseTemplate\\(\\) has parameter \\$replace with no value type specified in iterable type array\\.$#',
891-
'count' => 1,
892-
'path' => __DIR__ . '/system/Commands/Generators/ModelGenerator.php',
893-
];
894-
$ignoreErrors[] = [
895-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\ModelGenerator\\:\\:parseTemplate\\(\\) has parameter \\$search with no value type specified in iterable type array\\.$#',
896-
'count' => 1,
897-
'path' => __DIR__ . '/system/Commands/Generators/ModelGenerator.php',
898-
];
899779
$ignoreErrors[] = [
900780
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\ModelGenerator\\:\\:renderTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
901781
'count' => 1,
@@ -906,21 +786,6 @@
906786
'count' => 1,
907787
'path' => __DIR__ . '/system/Commands/Generators/ModelGenerator.php',
908788
];
909-
$ignoreErrors[] = [
910-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\ScaffoldGenerator\\:\\:parseTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
911-
'count' => 1,
912-
'path' => __DIR__ . '/system/Commands/Generators/ScaffoldGenerator.php',
913-
];
914-
$ignoreErrors[] = [
915-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\ScaffoldGenerator\\:\\:parseTemplate\\(\\) has parameter \\$replace with no value type specified in iterable type array\\.$#',
916-
'count' => 1,
917-
'path' => __DIR__ . '/system/Commands/Generators/ScaffoldGenerator.php',
918-
];
919-
$ignoreErrors[] = [
920-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\ScaffoldGenerator\\:\\:parseTemplate\\(\\) has parameter \\$search with no value type specified in iterable type array\\.$#',
921-
'count' => 1,
922-
'path' => __DIR__ . '/system/Commands/Generators/ScaffoldGenerator.php',
923-
];
924789
$ignoreErrors[] = [
925790
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\ScaffoldGenerator\\:\\:renderTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
926791
'count' => 1,
@@ -931,21 +796,6 @@
931796
'count' => 1,
932797
'path' => __DIR__ . '/system/Commands/Generators/ScaffoldGenerator.php',
933798
];
934-
$ignoreErrors[] = [
935-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\SeederGenerator\\:\\:parseTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
936-
'count' => 1,
937-
'path' => __DIR__ . '/system/Commands/Generators/SeederGenerator.php',
938-
];
939-
$ignoreErrors[] = [
940-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\SeederGenerator\\:\\:parseTemplate\\(\\) has parameter \\$replace with no value type specified in iterable type array\\.$#',
941-
'count' => 1,
942-
'path' => __DIR__ . '/system/Commands/Generators/SeederGenerator.php',
943-
];
944-
$ignoreErrors[] = [
945-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\SeederGenerator\\:\\:parseTemplate\\(\\) has parameter \\$search with no value type specified in iterable type array\\.$#',
946-
'count' => 1,
947-
'path' => __DIR__ . '/system/Commands/Generators/SeederGenerator.php',
948-
];
949799
$ignoreErrors[] = [
950800
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\SeederGenerator\\:\\:renderTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
951801
'count' => 1,
@@ -956,21 +806,6 @@
956806
'count' => 1,
957807
'path' => __DIR__ . '/system/Commands/Generators/SeederGenerator.php',
958808
];
959-
$ignoreErrors[] = [
960-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\TestGenerator\\:\\:parseTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
961-
'count' => 1,
962-
'path' => __DIR__ . '/system/Commands/Generators/TestGenerator.php',
963-
];
964-
$ignoreErrors[] = [
965-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\TestGenerator\\:\\:parseTemplate\\(\\) has parameter \\$replace with no value type specified in iterable type array\\.$#',
966-
'count' => 1,
967-
'path' => __DIR__ . '/system/Commands/Generators/TestGenerator.php',
968-
];
969-
$ignoreErrors[] = [
970-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\TestGenerator\\:\\:parseTemplate\\(\\) has parameter \\$search with no value type specified in iterable type array\\.$#',
971-
'count' => 1,
972-
'path' => __DIR__ . '/system/Commands/Generators/TestGenerator.php',
973-
];
974809
$ignoreErrors[] = [
975810
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\TestGenerator\\:\\:renderTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
976811
'count' => 1,
@@ -981,21 +816,6 @@
981816
'count' => 1,
982817
'path' => __DIR__ . '/system/Commands/Generators/TestGenerator.php',
983818
];
984-
$ignoreErrors[] = [
985-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\ValidationGenerator\\:\\:parseTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
986-
'count' => 1,
987-
'path' => __DIR__ . '/system/Commands/Generators/ValidationGenerator.php',
988-
];
989-
$ignoreErrors[] = [
990-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\ValidationGenerator\\:\\:parseTemplate\\(\\) has parameter \\$replace with no value type specified in iterable type array\\.$#',
991-
'count' => 1,
992-
'path' => __DIR__ . '/system/Commands/Generators/ValidationGenerator.php',
993-
];
994-
$ignoreErrors[] = [
995-
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\ValidationGenerator\\:\\:parseTemplate\\(\\) has parameter \\$search with no value type specified in iterable type array\\.$#',
996-
'count' => 1,
997-
'path' => __DIR__ . '/system/Commands/Generators/ValidationGenerator.php',
998-
];
999819
$ignoreErrors[] = [
1000820
'message' => '#^Method CodeIgniter\\\\Commands\\\\Generators\\\\ValidationGenerator\\:\\:renderTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
1001821
'count' => 1,
@@ -9551,21 +9371,6 @@
95519371
'count' => 1,
95529372
'path' => __DIR__ . '/tests/_support/Cells/StarterCell.php',
95539373
];
9554-
$ignoreErrors[] = [
9555-
'message' => '#^Method Tests\\\\Support\\\\Commands\\\\LanguageCommand\\:\\:parseTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
9556-
'count' => 1,
9557-
'path' => __DIR__ . '/tests/_support/Commands/LanguageCommand.php',
9558-
];
9559-
$ignoreErrors[] = [
9560-
'message' => '#^Method Tests\\\\Support\\\\Commands\\\\LanguageCommand\\:\\:parseTemplate\\(\\) has parameter \\$replace with no value type specified in iterable type array\\.$#',
9561-
'count' => 1,
9562-
'path' => __DIR__ . '/tests/_support/Commands/LanguageCommand.php',
9563-
];
9564-
$ignoreErrors[] = [
9565-
'message' => '#^Method Tests\\\\Support\\\\Commands\\\\LanguageCommand\\:\\:parseTemplate\\(\\) has parameter \\$search with no value type specified in iterable type array\\.$#',
9566-
'count' => 1,
9567-
'path' => __DIR__ . '/tests/_support/Commands/LanguageCommand.php',
9568-
];
95699374
$ignoreErrors[] = [
95709375
'message' => '#^Method Tests\\\\Support\\\\Commands\\\\LanguageCommand\\:\\:renderTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
95719376
'count' => 1,
@@ -9586,21 +9391,6 @@
95869391
'count' => 1,
95879392
'path' => __DIR__ . '/tests/_support/Commands/ParamsReveal.php',
95889393
];
9589-
$ignoreErrors[] = [
9590-
'message' => '#^Method Tests\\\\Support\\\\Commands\\\\Unsuffixable\\:\\:parseTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
9591-
'count' => 1,
9592-
'path' => __DIR__ . '/tests/_support/Commands/Unsuffixable.php',
9593-
];
9594-
$ignoreErrors[] = [
9595-
'message' => '#^Method Tests\\\\Support\\\\Commands\\\\Unsuffixable\\:\\:parseTemplate\\(\\) has parameter \\$replace with no value type specified in iterable type array\\.$#',
9596-
'count' => 1,
9597-
'path' => __DIR__ . '/tests/_support/Commands/Unsuffixable.php',
9598-
];
9599-
$ignoreErrors[] = [
9600-
'message' => '#^Method Tests\\\\Support\\\\Commands\\\\Unsuffixable\\:\\:parseTemplate\\(\\) has parameter \\$search with no value type specified in iterable type array\\.$#',
9601-
'count' => 1,
9602-
'path' => __DIR__ . '/tests/_support/Commands/Unsuffixable.php',
9603-
];
96049394
$ignoreErrors[] = [
96059395
'message' => '#^Method Tests\\\\Support\\\\Commands\\\\Unsuffixable\\:\\:renderTemplate\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
96069396
'count' => 1,

system/CLI/GeneratorTrait.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,10 @@ protected function renderTemplate(array $data = []): string
357357
/**
358358
* Performs pseudo-variables contained within view file.
359359
*
360-
* @param string $class namespaced classname or namespaced view.
360+
* @param string $class namespaced classname or namespaced view.
361+
* @param list<string> $search
362+
* @param list<string> $replace
363+
* @param array<string, bool|string|null> $data
361364
*
362365
* @return string generated file content
363366
*/

0 commit comments

Comments
 (0)