From 246ed66f7c6e3bf32f476182c2927f1688704e6e Mon Sep 17 00:00:00 2001 From: kenjis Date: Fri, 27 Oct 2023 19:17:02 +0900 Subject: [PATCH 1/3] config: update curlrequest.shareOptions The default value is false now. --- env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/env b/env index cb99e19c3a80..e60354b3c4f8 100644 --- a/env +++ b/env @@ -140,4 +140,4 @@ # CURLRequest #-------------------------------------------------------------------- -# curlrequest.shareOptions = true +# curlrequest.shareOptions = false From b421974ad3fbda6d089c1d523f9827c4784d6d30 Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Fri, 27 Oct 2023 23:40:29 +0800 Subject: [PATCH 2/3] fix: add Closure signature for CodeIgniter::$controller --- phpstan-baseline.php | 5 ----- system/CodeIgniter.php | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/phpstan-baseline.php b/phpstan-baseline.php index 0d372afdb97c..c56d1becdfee 100644 --- a/phpstan-baseline.php +++ b/phpstan-baseline.php @@ -186,11 +186,6 @@ 'count' => 6, 'path' => __DIR__ . '/system/CodeIgniter.php', ]; -$ignoreErrors[] = [ - 'message' => '#^Property CodeIgniter\\\\CodeIgniter\\:\\:\\$controller type has no signature specified for Closure\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/system/CodeIgniter.php', -]; $ignoreErrors[] = [ 'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#', 'count' => 1, diff --git a/system/CodeIgniter.php b/system/CodeIgniter.php index 9f9f6e174ca7..8299bfafa992 100644 --- a/system/CodeIgniter.php +++ b/system/CodeIgniter.php @@ -108,7 +108,7 @@ class CodeIgniter /** * Controller to use. * - * @var Closure|string + * @var (Closure(mixed...): ResponseInterface|string)|string */ protected $controller; From 543c2a844c94ea0ec445141bdb4ae819de7cc31f Mon Sep 17 00:00:00 2001 From: kenjis Date: Sat, 28 Oct 2023 11:48:52 +0900 Subject: [PATCH 3/3] docs: fix @param array type for Commands --- phpstan-baseline.php | 50 ------------------- system/CLI/BaseCommand.php | 20 ++++---- system/Commands/Cache/ClearCache.php | 2 +- system/Commands/Database/Migrate.php | 2 +- system/Commands/Database/MigrateRefresh.php | 2 +- system/Commands/Database/MigrateRollback.php | 2 +- system/Commands/Encryption/GenerateKey.php | 2 +- system/Commands/Generators/CellGenerator.php | 4 +- .../Commands/Generators/CommandGenerator.php | 4 +- .../Commands/Generators/ConfigGenerator.php | 4 +- .../Generators/ControllerGenerator.php | 4 +- .../Commands/Generators/EntityGenerator.php | 4 +- .../Commands/Generators/FilterGenerator.php | 4 +- system/Commands/Generators/MigrateCreate.php | 4 +- .../Generators/MigrationGenerator.php | 4 +- system/Commands/Generators/ModelGenerator.php | 4 +- .../Commands/Generators/ScaffoldGenerator.php | 4 +- .../Commands/Generators/SeederGenerator.php | 4 +- .../Generators/SessionMigrationGenerator.php | 2 +- .../Generators/ValidationGenerator.php | 4 +- system/Commands/Help.php | 4 +- system/Commands/Housekeeping/ClearLogs.php | 2 +- system/Commands/ListCommands.php | 4 +- system/Commands/Server/Serve.php | 4 +- system/Commands/Utilities/Environment.php | 2 +- system/Commands/Utilities/FilterCheck.php | 2 +- system/Commands/Utilities/Namespaces.php | 4 +- system/Commands/Utilities/Publish.php | 2 +- system/Commands/Utilities/Routes.php | 2 +- tests/_support/Commands/Unsuffixable.php | 4 +- 30 files changed, 55 insertions(+), 105 deletions(-) diff --git a/phpstan-baseline.php b/phpstan-baseline.php index 0d372afdb97c..c32d18872464 100644 --- a/phpstan-baseline.php +++ b/phpstan-baseline.php @@ -196,16 +196,6 @@ 'count' => 1, 'path' => __DIR__ . '/system/Commands/Database/CreateDatabase.php', ]; -$ignoreErrors[] = [ - 'message' => '#^PHPDoc type array\\ of property CodeIgniter\\\\Commands\\\\Database\\\\CreateDatabase\\:\\:\\$arguments is not the same as PHPDoc type array of overridden property CodeIgniter\\\\CLI\\\\BaseCommand\\:\\:\\$arguments\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/system/Commands/Database/CreateDatabase.php', -]; -$ignoreErrors[] = [ - 'message' => '#^PHPDoc type array\\ of property CodeIgniter\\\\Commands\\\\Database\\\\CreateDatabase\\:\\:\\$options is not the same as PHPDoc type array of overridden property CodeIgniter\\\\CLI\\\\BaseCommand\\:\\:\\$options\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/system/Commands/Database/CreateDatabase.php', -]; $ignoreErrors[] = [ 'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#', 'count' => 1, @@ -216,11 +206,6 @@ 'count' => 1, 'path' => __DIR__ . '/system/Commands/Database/MigrateStatus.php', ]; -$ignoreErrors[] = [ - 'message' => '#^PHPDoc type array\\ of property CodeIgniter\\\\Commands\\\\Database\\\\MigrateStatus\\:\\:\\$options is not the same as PHPDoc type array of overridden property CodeIgniter\\\\CLI\\\\BaseCommand\\:\\:\\$options\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/system/Commands/Database/MigrateStatus.php', -]; $ignoreErrors[] = [ 'message' => '#^Parameter \\#1 \\$params \\(array\\\\) of method CodeIgniter\\\\Commands\\\\Database\\\\MigrateStatus\\:\\:run\\(\\) should be contravariant with parameter \\$params \\(array\\\\) of method CodeIgniter\\\\CLI\\\\BaseCommand\\:\\:run\\(\\)$#', 'count' => 1, @@ -231,11 +216,6 @@ 'count' => 1, 'path' => __DIR__ . '/system/Commands/Database/Seed.php', ]; -$ignoreErrors[] = [ - 'message' => '#^PHPDoc type array\\ of property CodeIgniter\\\\Commands\\\\Database\\\\Seed\\:\\:\\$arguments is not the same as PHPDoc type array of overridden property CodeIgniter\\\\CLI\\\\BaseCommand\\:\\:\\$arguments\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/system/Commands/Database/Seed.php', -]; $ignoreErrors[] = [ 'message' => '#^Method CodeIgniter\\\\Commands\\\\Database\\\\ShowTableInfo\\:\\:showAllTables\\(\\) has no return type specified\\.$#', 'count' => 1, @@ -246,16 +226,6 @@ 'count' => 1, 'path' => __DIR__ . '/system/Commands/Database/ShowTableInfo.php', ]; -$ignoreErrors[] = [ - 'message' => '#^PHPDoc type array\\ of property CodeIgniter\\\\Commands\\\\Database\\\\ShowTableInfo\\:\\:\\$arguments is not the same as PHPDoc type array of overridden property CodeIgniter\\\\CLI\\\\BaseCommand\\:\\:\\$arguments\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/system/Commands/Database/ShowTableInfo.php', -]; -$ignoreErrors[] = [ - 'message' => '#^PHPDoc type array\\ of property CodeIgniter\\\\Commands\\\\Database\\\\ShowTableInfo\\:\\:\\$options is not the same as PHPDoc type array of overridden property CodeIgniter\\\\CLI\\\\BaseCommand\\:\\:\\$options\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/system/Commands/Database/ShowTableInfo.php', -]; $ignoreErrors[] = [ 'message' => '#^Accessing offset \'encryption\\.key\' directly on \\$_SERVER is discouraged\\.$#', 'count' => 1, @@ -756,26 +726,11 @@ 'count' => 3, 'path' => __DIR__ . '/system/Commands/Utilities/Environment.php', ]; -$ignoreErrors[] = [ - 'message' => '#^PHPDoc type array\\ of property CodeIgniter\\\\Commands\\\\Utilities\\\\Environment\\:\\:\\$arguments is not the same as PHPDoc type array of overridden property CodeIgniter\\\\CLI\\\\BaseCommand\\:\\:\\$arguments\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/system/Commands/Utilities/Environment.php', -]; -$ignoreErrors[] = [ - 'message' => '#^PHPDoc type array\\ of property CodeIgniter\\\\Commands\\\\Utilities\\\\FilterCheck\\:\\:\\$arguments is not the same as PHPDoc type array of overridden property CodeIgniter\\\\CLI\\\\BaseCommand\\:\\:\\$arguments\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/system/Commands/Utilities/FilterCheck.php', -]; $ignoreErrors[] = [ 'message' => '#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#', 'count' => 1, 'path' => __DIR__ . '/system/Commands/Utilities/Namespaces.php', ]; -$ignoreErrors[] = [ - 'message' => '#^PHPDoc type array\\ of property CodeIgniter\\\\Commands\\\\Utilities\\\\Publish\\:\\:\\$arguments is not the same as PHPDoc type array of overridden property CodeIgniter\\\\CLI\\\\BaseCommand\\:\\:\\$arguments\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/system/Commands/Utilities/Publish.php', -]; $ignoreErrors[] = [ 'message' => '#^Accessing offset \'HTTP_HOST\' directly on \\$_SERVER is discouraged\\.$#', 'count' => 1, @@ -796,11 +751,6 @@ 'count' => 3, 'path' => __DIR__ . '/system/Commands/Utilities/Routes.php', ]; -$ignoreErrors[] = [ - 'message' => '#^PHPDoc type array\\ of property CodeIgniter\\\\Commands\\\\Utilities\\\\Routes\\:\\:\\$options is not the same as PHPDoc type array of overridden property CodeIgniter\\\\CLI\\\\BaseCommand\\:\\:\\$options\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/system/Commands/Utilities/Routes.php', -]; $ignoreErrors[] = [ 'message' => '#^Implicit array creation is not allowed \\- variable \\$filters might not exist\\.$#', 'count' => 1, diff --git a/system/CLI/BaseCommand.php b/system/CLI/BaseCommand.php index c4448d56b01a..d837f50dbeef 100644 --- a/system/CLI/BaseCommand.php +++ b/system/CLI/BaseCommand.php @@ -19,14 +19,14 @@ /** * BaseCommand is the base class used in creating CLI commands. * - * @property array $arguments - * @property Commands $commands - * @property string $description - * @property string $group - * @property LoggerInterface $logger - * @property string $name - * @property array $options - * @property string $usage + * @property array $arguments + * @property Commands $commands + * @property string $description + * @property string $group + * @property LoggerInterface $logger + * @property string $name + * @property array $options + * @property string $usage */ abstract class BaseCommand { @@ -62,14 +62,14 @@ abstract class BaseCommand /** * the Command's options description * - * @var array + * @var array */ protected $options = []; /** * the Command's Arguments description * - * @var array + * @var array */ protected $arguments = []; diff --git a/system/Commands/Cache/ClearCache.php b/system/Commands/Cache/ClearCache.php index b903425ba795..79fab9dfae3c 100644 --- a/system/Commands/Cache/ClearCache.php +++ b/system/Commands/Cache/ClearCache.php @@ -52,7 +52,7 @@ class ClearCache extends BaseCommand /** * the Command's Arguments * - * @var array + * @var array */ protected $arguments = [ 'driver' => 'The cache driver to use', diff --git a/system/Commands/Database/Migrate.php b/system/Commands/Database/Migrate.php index bcf71cade337..119335170d5e 100644 --- a/system/Commands/Database/Migrate.php +++ b/system/Commands/Database/Migrate.php @@ -53,7 +53,7 @@ class Migrate extends BaseCommand /** * the Command's Options * - * @var array + * @var array */ protected $options = [ '-n' => 'Set migration namespace', diff --git a/system/Commands/Database/MigrateRefresh.php b/system/Commands/Database/MigrateRefresh.php index 689c75424f80..f683219e9d2c 100644 --- a/system/Commands/Database/MigrateRefresh.php +++ b/system/Commands/Database/MigrateRefresh.php @@ -52,7 +52,7 @@ class MigrateRefresh extends BaseCommand /** * the Command's Options * - * @var array + * @var array */ protected $options = [ '-n' => 'Set migration namespace', diff --git a/system/Commands/Database/MigrateRollback.php b/system/Commands/Database/MigrateRollback.php index c104a81fd9fa..2df223c0f8ad 100644 --- a/system/Commands/Database/MigrateRollback.php +++ b/system/Commands/Database/MigrateRollback.php @@ -54,7 +54,7 @@ class MigrateRollback extends BaseCommand /** * the Command's Options * - * @var array + * @var array */ protected $options = [ '-b' => 'Specify a batch to roll back to; e.g. "3" to return to batch #3', diff --git a/system/Commands/Encryption/GenerateKey.php b/system/Commands/Encryption/GenerateKey.php index 5837bfb02636..419ae6ef3e34 100644 --- a/system/Commands/Encryption/GenerateKey.php +++ b/system/Commands/Encryption/GenerateKey.php @@ -52,7 +52,7 @@ class GenerateKey extends BaseCommand /** * The command's options * - * @var array + * @var array */ protected $options = [ '--force' => 'Force overwrite existing key in `.env` file.', diff --git a/system/Commands/Generators/CellGenerator.php b/system/Commands/Generators/CellGenerator.php index cdb819d869f9..cf4757d10eeb 100644 --- a/system/Commands/Generators/CellGenerator.php +++ b/system/Commands/Generators/CellGenerator.php @@ -52,7 +52,7 @@ class CellGenerator extends BaseCommand /** * The Command's Arguments * - * @var array + * @var array */ protected $arguments = [ 'name' => 'The cell class name.', @@ -61,7 +61,7 @@ class CellGenerator extends BaseCommand /** * The Command's Options * - * @var array + * @var array */ protected $options = [ '--namespace' => 'Set root namespace. Default: "APP_NAMESPACE".', diff --git a/system/Commands/Generators/CommandGenerator.php b/system/Commands/Generators/CommandGenerator.php index 7ccae13f7163..4b2ec360ad38 100644 --- a/system/Commands/Generators/CommandGenerator.php +++ b/system/Commands/Generators/CommandGenerator.php @@ -53,7 +53,7 @@ class CommandGenerator extends BaseCommand /** * The Command's Arguments * - * @var array + * @var array */ protected $arguments = [ 'name' => 'The command class name.', @@ -62,7 +62,7 @@ class CommandGenerator extends BaseCommand /** * The Command's Options * - * @var array + * @var array */ protected $options = [ '--command' => 'The command name. Default: "command:name"', diff --git a/system/Commands/Generators/ConfigGenerator.php b/system/Commands/Generators/ConfigGenerator.php index 606af47b33f0..a83a9671201d 100644 --- a/system/Commands/Generators/ConfigGenerator.php +++ b/system/Commands/Generators/ConfigGenerator.php @@ -52,7 +52,7 @@ class ConfigGenerator extends BaseCommand /** * The Command's Arguments * - * @var array + * @var array */ protected $arguments = [ 'name' => 'The config class name.', @@ -61,7 +61,7 @@ class ConfigGenerator extends BaseCommand /** * The Command's Options * - * @var array + * @var array */ protected $options = [ '--namespace' => 'Set root namespace. Default: "APP_NAMESPACE".', diff --git a/system/Commands/Generators/ControllerGenerator.php b/system/Commands/Generators/ControllerGenerator.php index f27c77ee0fe5..2cf912b1c7ff 100644 --- a/system/Commands/Generators/ControllerGenerator.php +++ b/system/Commands/Generators/ControllerGenerator.php @@ -56,7 +56,7 @@ class ControllerGenerator extends BaseCommand /** * The Command's Arguments * - * @var array + * @var array */ protected $arguments = [ 'name' => 'The controller class name.', @@ -65,7 +65,7 @@ class ControllerGenerator extends BaseCommand /** * The Command's Options * - * @var array + * @var array */ protected $options = [ '--bare' => 'Extends from CodeIgniter\Controller instead of BaseController.', diff --git a/system/Commands/Generators/EntityGenerator.php b/system/Commands/Generators/EntityGenerator.php index 8cd84785c311..bd20daf59662 100644 --- a/system/Commands/Generators/EntityGenerator.php +++ b/system/Commands/Generators/EntityGenerator.php @@ -52,7 +52,7 @@ class EntityGenerator extends BaseCommand /** * The Command's Arguments * - * @var array + * @var array */ protected $arguments = [ 'name' => 'The entity class name.', @@ -61,7 +61,7 @@ class EntityGenerator extends BaseCommand /** * The Command's Options * - * @var array + * @var array */ protected $options = [ '--namespace' => 'Set root namespace. Default: "APP_NAMESPACE".', diff --git a/system/Commands/Generators/FilterGenerator.php b/system/Commands/Generators/FilterGenerator.php index 02060b020291..620bee5a9ad4 100644 --- a/system/Commands/Generators/FilterGenerator.php +++ b/system/Commands/Generators/FilterGenerator.php @@ -52,7 +52,7 @@ class FilterGenerator extends BaseCommand /** * The Command's Arguments * - * @var array + * @var array */ protected $arguments = [ 'name' => 'The filter class name.', @@ -61,7 +61,7 @@ class FilterGenerator extends BaseCommand /** * The Command's Options * - * @var array + * @var array */ protected $options = [ '--namespace' => 'Set root namespace. Default: "APP_NAMESPACE".', diff --git a/system/Commands/Generators/MigrateCreate.php b/system/Commands/Generators/MigrateCreate.php index 0b4935342831..a2fa6bf76667 100644 --- a/system/Commands/Generators/MigrateCreate.php +++ b/system/Commands/Generators/MigrateCreate.php @@ -55,7 +55,7 @@ class MigrateCreate extends BaseCommand /** * The Command's arguments. * - * @var array + * @var array */ protected $arguments = [ 'name' => 'The migration file name.', @@ -64,7 +64,7 @@ class MigrateCreate extends BaseCommand /** * The Command's options. * - * @var array + * @var array */ protected $options = [ '--namespace' => 'Set root namespace. Defaults to APP_NAMESPACE', diff --git a/system/Commands/Generators/MigrationGenerator.php b/system/Commands/Generators/MigrationGenerator.php index 82428a6948b3..52f9e6e53535 100644 --- a/system/Commands/Generators/MigrationGenerator.php +++ b/system/Commands/Generators/MigrationGenerator.php @@ -56,7 +56,7 @@ class MigrationGenerator extends BaseCommand /** * The Command's Arguments * - * @var array + * @var array */ protected $arguments = [ 'name' => 'The migration class name.', @@ -65,7 +65,7 @@ class MigrationGenerator extends BaseCommand /** * The Command's Options * - * @var array + * @var array */ protected $options = [ '--session' => 'Generates the migration file for database sessions.', diff --git a/system/Commands/Generators/ModelGenerator.php b/system/Commands/Generators/ModelGenerator.php index eb0a1aa9802f..f4946a9441c9 100644 --- a/system/Commands/Generators/ModelGenerator.php +++ b/system/Commands/Generators/ModelGenerator.php @@ -53,7 +53,7 @@ class ModelGenerator extends BaseCommand /** * The Command's Arguments * - * @var array + * @var array */ protected $arguments = [ 'name' => 'The model class name.', @@ -62,7 +62,7 @@ class ModelGenerator extends BaseCommand /** * The Command's Options * - * @var array + * @var array */ protected $options = [ '--table' => 'Supply a table name. Default: "the lowercased plural of the class name".', diff --git a/system/Commands/Generators/ScaffoldGenerator.php b/system/Commands/Generators/ScaffoldGenerator.php index 351ee009459e..ef34b92ed572 100644 --- a/system/Commands/Generators/ScaffoldGenerator.php +++ b/system/Commands/Generators/ScaffoldGenerator.php @@ -53,7 +53,7 @@ class ScaffoldGenerator extends BaseCommand /** * The Command's Arguments * - * @var array + * @var array */ protected $arguments = [ 'name' => 'The class name', @@ -62,7 +62,7 @@ class ScaffoldGenerator extends BaseCommand /** * The Command's Options * - * @var array + * @var array */ protected $options = [ '--bare' => 'Add the "--bare" option to controller component.', diff --git a/system/Commands/Generators/SeederGenerator.php b/system/Commands/Generators/SeederGenerator.php index 09a1037f0bdc..e60525ae0d57 100644 --- a/system/Commands/Generators/SeederGenerator.php +++ b/system/Commands/Generators/SeederGenerator.php @@ -52,7 +52,7 @@ class SeederGenerator extends BaseCommand /** * The Command's Arguments * - * @var array + * @var array */ protected $arguments = [ 'name' => 'The seeder class name.', @@ -61,7 +61,7 @@ class SeederGenerator extends BaseCommand /** * The Command's Options * - * @var array + * @var array */ protected $options = [ '--namespace' => 'Set root namespace. Default: "APP_NAMESPACE".', diff --git a/system/Commands/Generators/SessionMigrationGenerator.php b/system/Commands/Generators/SessionMigrationGenerator.php index a04527e866d1..cb7da5892780 100644 --- a/system/Commands/Generators/SessionMigrationGenerator.php +++ b/system/Commands/Generators/SessionMigrationGenerator.php @@ -59,7 +59,7 @@ class SessionMigrationGenerator extends BaseCommand /** * The Command's Options * - * @var array + * @var array */ protected $options = [ '-t' => 'Supply a table name.', diff --git a/system/Commands/Generators/ValidationGenerator.php b/system/Commands/Generators/ValidationGenerator.php index 0c58ca5b0866..1b2efb8db18a 100644 --- a/system/Commands/Generators/ValidationGenerator.php +++ b/system/Commands/Generators/ValidationGenerator.php @@ -52,7 +52,7 @@ class ValidationGenerator extends BaseCommand /** * The Command's Arguments * - * @var array + * @var array */ protected $arguments = [ 'name' => 'The validation class name.', @@ -61,7 +61,7 @@ class ValidationGenerator extends BaseCommand /** * The Command's Options * - * @var array + * @var array */ protected $options = [ '--namespace' => 'Set root namespace. Default: "APP_NAMESPACE".', diff --git a/system/Commands/Help.php b/system/Commands/Help.php index 74dcbeab855a..338a5c868c72 100644 --- a/system/Commands/Help.php +++ b/system/Commands/Help.php @@ -53,7 +53,7 @@ class Help extends BaseCommand /** * the Command's Arguments * - * @var array + * @var array */ protected $arguments = [ 'command_name' => 'The command name [default: "help"]', @@ -62,7 +62,7 @@ class Help extends BaseCommand /** * the Command's Options * - * @var array + * @var array */ protected $options = []; diff --git a/system/Commands/Housekeeping/ClearLogs.php b/system/Commands/Housekeeping/ClearLogs.php index eb2489c5ea72..56cfeab36ae7 100644 --- a/system/Commands/Housekeeping/ClearLogs.php +++ b/system/Commands/Housekeeping/ClearLogs.php @@ -51,7 +51,7 @@ class ClearLogs extends BaseCommand /** * The Command's options * - * @var array + * @var array */ protected $options = [ '--force' => 'Force delete of all logs files without prompting.', diff --git a/system/Commands/ListCommands.php b/system/Commands/ListCommands.php index 0c808322af6a..9accecf0ad79 100644 --- a/system/Commands/ListCommands.php +++ b/system/Commands/ListCommands.php @@ -54,14 +54,14 @@ class ListCommands extends BaseCommand /** * the Command's Arguments * - * @var array + * @var array */ protected $arguments = []; /** * the Command's Options * - * @var array + * @var array */ protected $options = [ '--simple' => 'Prints a list of the commands with no other info', diff --git a/system/Commands/Server/Serve.php b/system/Commands/Server/Serve.php index 2dc9e5ddc8d8..b53820205fba 100644 --- a/system/Commands/Server/Serve.php +++ b/system/Commands/Server/Serve.php @@ -54,7 +54,7 @@ class Serve extends BaseCommand /** * Arguments * - * @var array + * @var array */ protected $arguments = []; @@ -75,7 +75,7 @@ class Serve extends BaseCommand /** * Options * - * @var array + * @var array */ protected $options = [ '--php' => 'The PHP Binary [default: "PHP_BINARY"]', diff --git a/system/Commands/Utilities/Environment.php b/system/Commands/Utilities/Environment.php index b844e7a260f2..fd8f68fabdbd 100644 --- a/system/Commands/Utilities/Environment.php +++ b/system/Commands/Utilities/Environment.php @@ -62,7 +62,7 @@ final class Environment extends BaseCommand /** * The Command's options * - * @var array + * @var array */ protected $options = []; diff --git a/system/Commands/Utilities/FilterCheck.php b/system/Commands/Utilities/FilterCheck.php index d2eb2fb728a4..38dbe8b4bc8d 100644 --- a/system/Commands/Utilities/FilterCheck.php +++ b/system/Commands/Utilities/FilterCheck.php @@ -63,7 +63,7 @@ class FilterCheck extends BaseCommand /** * the Command's Options * - * @var array + * @var array */ protected $options = []; diff --git a/system/Commands/Utilities/Namespaces.php b/system/Commands/Utilities/Namespaces.php index ef37736c56b8..71461933c5a0 100644 --- a/system/Commands/Utilities/Namespaces.php +++ b/system/Commands/Utilities/Namespaces.php @@ -57,14 +57,14 @@ class Namespaces extends BaseCommand /** * the Command's Arguments * - * @var array + * @var array */ protected $arguments = []; /** * the Command's Options * - * @var array + * @var array */ protected $options = [ '-c' => 'Show only CodeIgniter config namespaces.', diff --git a/system/Commands/Utilities/Publish.php b/system/Commands/Utilities/Publish.php index cfed0472c439..1e4103c114d8 100644 --- a/system/Commands/Utilities/Publish.php +++ b/system/Commands/Utilities/Publish.php @@ -63,7 +63,7 @@ class Publish extends BaseCommand /** * the Command's Options * - * @var array + * @var array */ protected $options = []; diff --git a/system/Commands/Utilities/Routes.php b/system/Commands/Utilities/Routes.php index b3693ec6860e..5d20da07d514 100644 --- a/system/Commands/Utilities/Routes.php +++ b/system/Commands/Utilities/Routes.php @@ -61,7 +61,7 @@ class Routes extends BaseCommand /** * the Command's Arguments * - * @var array + * @var array */ protected $arguments = []; diff --git a/tests/_support/Commands/Unsuffixable.php b/tests/_support/Commands/Unsuffixable.php index cf906071d7ef..087dc558fdc0 100644 --- a/tests/_support/Commands/Unsuffixable.php +++ b/tests/_support/Commands/Unsuffixable.php @@ -49,7 +49,7 @@ class Unsuffixable extends BaseCommand /** * The Command's Arguments * - * @var array + * @var array */ protected $arguments = [ 'name' => 'Class name', @@ -58,7 +58,7 @@ class Unsuffixable extends BaseCommand /** * The Command's Options * - * @var array + * @var array */ protected $options = [];