From 46ea07b4fb6519ac6a32870bef1cc99cc944562a Mon Sep 17 00:00:00 2001 From: obozdag Date: Tue, 30 Apr 2024 11:13:47 +0200 Subject: [PATCH 1/3] docs: Fix typo in dbmgmt/forge.rst Fix typo in dbmgmt/forge.rst --- user_guide_src/source/dbmgmt/forge.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user_guide_src/source/dbmgmt/forge.rst b/user_guide_src/source/dbmgmt/forge.rst index 241743fb487e..00915a5dae81 100644 --- a/user_guide_src/source/dbmgmt/forge.rst +++ b/user_guide_src/source/dbmgmt/forge.rst @@ -41,7 +41,7 @@ Returns true/false based on success or failure: .. literalinclude:: forge/003.php An optional second parameter set to true will add ``IF EXISTS`` statement -or will check if a database exists before create it (depending on DBMS). +or will check if a database exists before creating it (depending on DBMS). .. literalinclude:: forge/004.php From dc050da64aabe2943305182bed7a210dad53a211 Mon Sep 17 00:00:00 2001 From: obozdag Date: Tue, 30 Apr 2024 11:18:02 +0200 Subject: [PATCH 2/3] docs: Shorten the menu item in dbmgmt/index.rst Shorten the menu item "Database Manipulation with Database Forge" to "Database Forge" --- user_guide_src/source/dbmgmt/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user_guide_src/source/dbmgmt/index.rst b/user_guide_src/source/dbmgmt/index.rst index 68bfea3e6098..38701c2e1ac8 100644 --- a/user_guide_src/source/dbmgmt/index.rst +++ b/user_guide_src/source/dbmgmt/index.rst @@ -7,7 +7,7 @@ CodeIgniter comes with tools to restructure or seed your database. .. toctree:: :titlesonly: - Database Manipulation with Database Forge + Database Forge Database Migrations Database Seeding db_commands From acf3e6ce4d15b413429e9ed4223aeb74fec0854f Mon Sep 17 00:00:00 2001 From: Sahil Khatik Date: Sun, 5 May 2024 13:03:00 +0530 Subject: [PATCH 3/3] Fix: Resolved phpstan error in Config/Filters.php --- phpstan-baseline.php | 11 ----------- system/Config/Filters.php | 2 ++ 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/phpstan-baseline.php b/phpstan-baseline.php index 1959aea9685c..fc9b102f8b3f 100644 --- a/phpstan-baseline.php +++ b/phpstan-baseline.php @@ -1,11 +1,5 @@ '#^PHPDoc type array\\\\> of property Config\\\\Filters\\:\\:\\$methods is not the same as PHPDoc type array of overridden property CodeIgniter\\\\Config\\\\Filters\\:\\:\\$methods\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/app/Config/Filters.php', -]; $ignoreErrors[] = [ 'message' => '#^PHPDoc type array\\\\>\\> of property Config\\\\Filters\\:\\:\\$filters is not the same as PHPDoc type array of overridden property CodeIgniter\\\\Config\\\\Filters\\:\\:\\$filters\\.$#', 'count' => 1, @@ -1151,11 +1145,6 @@ 'count' => 1, 'path' => __DIR__ . '/system/Config/Filters.php', ]; -$ignoreErrors[] = [ - 'message' => '#^Property CodeIgniter\\\\Config\\\\Filters\\:\\:\\$methods type has no value type specified in iterable type array\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/system/Config/Filters.php', -]; $ignoreErrors[] = [ 'message' => '#^Accessing offset \'SERVER_PROTOCOL\' directly on \\$_SERVER is discouraged\\.$#', 'count' => 1, diff --git a/system/Config/Filters.php b/system/Config/Filters.php index 9096dc7ba03f..562eae8a26ef 100644 --- a/system/Config/Filters.php +++ b/system/Config/Filters.php @@ -102,6 +102,8 @@ class Filters extends BaseConfig * If you use this, you should disable auto-routing because auto-routing * permits any HTTP method to access a controller. Accessing the controller * with a method you don't expect could bypass the filter. + * + * @var array> */ public array $methods = [];