From aa1775cbce3d32bbfece49c58f015ca0198abd1b Mon Sep 17 00:00:00 2001 From: kenjis Date: Mon, 26 Feb 2024 09:20:36 +0900 Subject: [PATCH 1/2] docs: add @psalm-suppress UndefinedDocblockClass --- system/Config/View.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/system/Config/View.php b/system/Config/View.php index 403d933be5b8..ea1442e5bc62 100644 --- a/system/Config/View.php +++ b/system/Config/View.php @@ -59,6 +59,8 @@ class View extends BaseConfig /** * Built-in View filters. * + * @psalm-suppress UndefinedDocblockClass + * * @var array * @phpstan-var array */ @@ -89,6 +91,8 @@ class View extends BaseConfig /** * Built-in View plugins. * + * @psalm-suppress UndefinedDocblockClass + * * @var array|string> * @phpstan-var array|parser_callable_string|parser_callable> */ From c5e8b3ef76d8bbc70069d4672ad712462fd06054 Mon Sep 17 00:00:00 2001 From: kenjis Date: Mon, 26 Feb 2024 09:28:18 +0900 Subject: [PATCH 2/2] chore: update psalm-baseline.xml vendor/bin/psalm --set-baseline=psalm-baseline.xml --- psalm-baseline.xml | 137 +++++++++++++++------------------------------ 1 file changed, 45 insertions(+), 92 deletions(-) diff --git a/psalm-baseline.xml b/psalm-baseline.xml index 129aefd272a2..8c4f4c696912 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -1,20 +1,20 @@ - + |parser_callable_string|parser_callable>]]> |parser_callable_string|parser_callable>]]> ]]> - public $filters = []; - public $plugins = []; - public $plugins = []; + + + - Memcache - Memcache - Memcache + + + memcached]]> @@ -23,67 +23,20 @@ memcached]]> memcached]]> memcached]]> - Memcache|Memcached + - $routeWithoutController - $routeWithoutController + + - |parser_callable_string|parser_callable>]]> - |parser_callable_string|parser_callable>]]> + |parser_callable_string|parser_callable>]]> + |parser_callable_string|parser_callable>]]> ]]> - '\abs', - 'capitalize' => '\CodeIgniter\View\Filters::capitalize', - 'date' => '\CodeIgniter\View\Filters::date', - 'date_modify' => '\CodeIgniter\View\Filters::date_modify', - 'default' => '\CodeIgniter\View\Filters::default', - 'esc' => '\CodeIgniter\View\Filters::esc', - 'excerpt' => '\CodeIgniter\View\Filters::excerpt', - 'highlight' => '\CodeIgniter\View\Filters::highlight', - 'highlight_code' => '\CodeIgniter\View\Filters::highlight_code', - 'limit_words' => '\CodeIgniter\View\Filters::limit_words', - 'limit_chars' => '\CodeIgniter\View\Filters::limit_chars', - 'local_currency' => '\CodeIgniter\View\Filters::local_currency', - 'local_number' => '\CodeIgniter\View\Filters::local_number', - 'lower' => '\strtolower', - 'nl2br' => '\CodeIgniter\View\Filters::nl2br', - 'number_format' => '\number_format', - 'prose' => '\CodeIgniter\View\Filters::prose', - 'round' => '\CodeIgniter\View\Filters::round', - 'strip_tags' => '\strip_tags', - 'title' => '\CodeIgniter\View\Filters::title', - 'upper' => '\strtoupper', - ];]]> - '\CodeIgniter\View\Plugins::cspScriptNonce', - 'csp_style_nonce' => '\CodeIgniter\View\Plugins::cspStyleNonce', - 'current_url' => '\CodeIgniter\View\Plugins::currentURL', - 'previous_url' => '\CodeIgniter\View\Plugins::previousURL', - 'mailto' => '\CodeIgniter\View\Plugins::mailto', - 'safe_mailto' => '\CodeIgniter\View\Plugins::safeMailto', - 'lang' => '\CodeIgniter\View\Plugins::lang', - 'validation_errors' => '\CodeIgniter\View\Plugins::validationErrors', - 'route' => '\CodeIgniter\View\Plugins::route', - 'siteURL' => '\CodeIgniter\View\Plugins::siteURL', - ];]]> - '\CodeIgniter\View\Plugins::cspScriptNonce', - 'csp_style_nonce' => '\CodeIgniter\View\Plugins::cspStyleNonce', - 'current_url' => '\CodeIgniter\View\Plugins::currentURL', - 'previous_url' => '\CodeIgniter\View\Plugins::previousURL', - 'mailto' => '\CodeIgniter\View\Plugins::mailto', - 'safe_mailto' => '\CodeIgniter\View\Plugins::safeMailto', - 'lang' => '\CodeIgniter\View\Plugins::lang', - 'validation_errors' => '\CodeIgniter\View\Plugins::validationErrors', - 'route' => '\CodeIgniter\View\Plugins::route', - 'siteURL' => '\CodeIgniter\View\Plugins::siteURL', - ];]]> @@ -93,43 +46,43 @@ - OCI_COMMIT_ON_SUCCESS - OCI_COMMIT_ON_SUCCESS - OCI_COMMIT_ON_SUCCESS - OCI_NO_AUTO_COMMIT - SQLT_CHR + + + + + - renderTimeline + - $config + - $timestamp + - $output[$name] + - $count - $count - $count + + + - #[ReturnTypeWillChange] - #[ReturnTypeWillChange] - #[ReturnTypeWillChange] + + + @@ -139,39 +92,39 @@ - |parser_callable_string|parser_callable>]]> - |parser_callable_string|parser_callable>]]> - protected $plugins = []; - protected $plugins = []; + |parser_callable_string|parser_callable>]]> + |parser_callable_string|parser_callable>]]> + + - $filters + - $routes - $routes - $routes - $routes - $routes + + + + + - $this + - $command + - UnexsistenceClass + @@ -183,14 +136,14 @@ - OCI_ASSOC - OCI_B_CURSOR - OCI_RETURN_NULLS + + + - $current[$key] + @@ -200,7 +153,7 @@ - NeverHeardOfIt +