Skip to content

Commit 4d5c35c

Browse files
authored
Merge pull request #8584 from kenjis/suppress-psalm-errors
docs: suppress Psalm errors
2 parents a718427 + c5e8b3e commit 4d5c35c

2 files changed

Lines changed: 49 additions & 92 deletions

File tree

psalm-baseline.xml

Lines changed: 45 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<files psalm-version="5.21.1@8c473e2437be8b6a8fd8f630f0f11a16b114c494">
2+
<files psalm-version="5.22.2@d768d914152dbbf3486c36398802f74e80cfde48">
33
<file src="app/Config/View.php">
44
<UndefinedDocblockClass>
55
<code><![CDATA[array<string, list<parser_callable_string>|parser_callable_string|parser_callable>]]></code>
66
<code><![CDATA[array<string, list<parser_callable_string>|parser_callable_string|parser_callable>]]></code>
77
<code><![CDATA[array<string, parser_callable_string>]]></code>
8-
<code>public $filters = [];</code>
9-
<code>public $plugins = [];</code>
10-
<code>public $plugins = [];</code>
8+
<code><![CDATA[public $filters = [];]]></code>
9+
<code><![CDATA[public $plugins = [];]]></code>
10+
<code><![CDATA[public $plugins = [];]]></code>
1111
</UndefinedDocblockClass>
1212
</file>
1313
<file src="system/Cache/Handlers/MemcachedHandler.php">
1414
<UndefinedClass>
15-
<code>Memcache</code>
16-
<code>Memcache</code>
17-
<code>Memcache</code>
15+
<code><![CDATA[Memcache]]></code>
16+
<code><![CDATA[Memcache]]></code>
17+
<code><![CDATA[Memcache]]></code>
1818
</UndefinedClass>
1919
<UndefinedDocblockClass>
2020
<code><![CDATA[$this->memcached]]></code>
@@ -23,67 +23,20 @@
2323
<code><![CDATA[$this->memcached]]></code>
2424
<code><![CDATA[$this->memcached]]></code>
2525
<code><![CDATA[$this->memcached]]></code>
26-
<code>Memcache|Memcached</code>
26+
<code><![CDATA[Memcache|Memcached]]></code>
2727
</UndefinedDocblockClass>
2828
</file>
2929
<file src="system/Commands/Utilities/Routes/ControllerMethodReader.php">
3030
<DuplicateArrayKey>
31-
<code>$routeWithoutController</code>
32-
<code>$routeWithoutController</code>
31+
<code><![CDATA[$routeWithoutController]]></code>
32+
<code><![CDATA[$routeWithoutController]]></code>
3333
</DuplicateArrayKey>
3434
</file>
3535
<file src="system/Config/View.php">
3636
<UndefinedDocblockClass>
37-
<code><![CDATA[array<string, list<parser_callable_string>|parser_callable_string|parser_callable>]]></code>
38-
<code><![CDATA[array<string, list<parser_callable_string>|parser_callable_string|parser_callable>]]></code>
37+
<code><![CDATA[array<string, array<parser_callable_string>|parser_callable_string|parser_callable>]]></code>
38+
<code><![CDATA[array<string, array<parser_callable_string>|parser_callable_string|parser_callable>]]></code>
3939
<code><![CDATA[array<string, parser_callable_string>]]></code>
40-
<code><![CDATA[protected $coreFilters = [
41-
'abs' => '\abs',
42-
'capitalize' => '\CodeIgniter\View\Filters::capitalize',
43-
'date' => '\CodeIgniter\View\Filters::date',
44-
'date_modify' => '\CodeIgniter\View\Filters::date_modify',
45-
'default' => '\CodeIgniter\View\Filters::default',
46-
'esc' => '\CodeIgniter\View\Filters::esc',
47-
'excerpt' => '\CodeIgniter\View\Filters::excerpt',
48-
'highlight' => '\CodeIgniter\View\Filters::highlight',
49-
'highlight_code' => '\CodeIgniter\View\Filters::highlight_code',
50-
'limit_words' => '\CodeIgniter\View\Filters::limit_words',
51-
'limit_chars' => '\CodeIgniter\View\Filters::limit_chars',
52-
'local_currency' => '\CodeIgniter\View\Filters::local_currency',
53-
'local_number' => '\CodeIgniter\View\Filters::local_number',
54-
'lower' => '\strtolower',
55-
'nl2br' => '\CodeIgniter\View\Filters::nl2br',
56-
'number_format' => '\number_format',
57-
'prose' => '\CodeIgniter\View\Filters::prose',
58-
'round' => '\CodeIgniter\View\Filters::round',
59-
'strip_tags' => '\strip_tags',
60-
'title' => '\CodeIgniter\View\Filters::title',
61-
'upper' => '\strtoupper',
62-
];]]></code>
63-
<code><![CDATA[protected $corePlugins = [
64-
'csp_script_nonce' => '\CodeIgniter\View\Plugins::cspScriptNonce',
65-
'csp_style_nonce' => '\CodeIgniter\View\Plugins::cspStyleNonce',
66-
'current_url' => '\CodeIgniter\View\Plugins::currentURL',
67-
'previous_url' => '\CodeIgniter\View\Plugins::previousURL',
68-
'mailto' => '\CodeIgniter\View\Plugins::mailto',
69-
'safe_mailto' => '\CodeIgniter\View\Plugins::safeMailto',
70-
'lang' => '\CodeIgniter\View\Plugins::lang',
71-
'validation_errors' => '\CodeIgniter\View\Plugins::validationErrors',
72-
'route' => '\CodeIgniter\View\Plugins::route',
73-
'siteURL' => '\CodeIgniter\View\Plugins::siteURL',
74-
];]]></code>
75-
<code><![CDATA[protected $corePlugins = [
76-
'csp_script_nonce' => '\CodeIgniter\View\Plugins::cspScriptNonce',
77-
'csp_style_nonce' => '\CodeIgniter\View\Plugins::cspStyleNonce',
78-
'current_url' => '\CodeIgniter\View\Plugins::currentURL',
79-
'previous_url' => '\CodeIgniter\View\Plugins::previousURL',
80-
'mailto' => '\CodeIgniter\View\Plugins::mailto',
81-
'safe_mailto' => '\CodeIgniter\View\Plugins::safeMailto',
82-
'lang' => '\CodeIgniter\View\Plugins::lang',
83-
'validation_errors' => '\CodeIgniter\View\Plugins::validationErrors',
84-
'route' => '\CodeIgniter\View\Plugins::route',
85-
'siteURL' => '\CodeIgniter\View\Plugins::siteURL',
86-
];]]></code>
8740
</UndefinedDocblockClass>
8841
</file>
8942
<file src="system/Database/BasePreparedQuery.php">
@@ -93,43 +46,43 @@
9346
</file>
9447
<file src="system/Database/OCI8/Connection.php">
9548
<UndefinedConstant>
96-
<code>OCI_COMMIT_ON_SUCCESS</code>
97-
<code>OCI_COMMIT_ON_SUCCESS</code>
98-
<code>OCI_COMMIT_ON_SUCCESS</code>
99-
<code>OCI_NO_AUTO_COMMIT</code>
100-
<code>SQLT_CHR</code>
49+
<code><![CDATA[OCI_COMMIT_ON_SUCCESS]]></code>
50+
<code><![CDATA[OCI_COMMIT_ON_SUCCESS]]></code>
51+
<code><![CDATA[OCI_COMMIT_ON_SUCCESS]]></code>
52+
<code><![CDATA[OCI_NO_AUTO_COMMIT]]></code>
53+
<code><![CDATA[SQLT_CHR]]></code>
10154
</UndefinedConstant>
10255
</file>
10356
<file src="system/Debug/Toolbar/Views/toolbar.tpl.php">
10457
<InaccessibleMethod>
105-
<code>renderTimeline</code>
58+
<code><![CDATA[renderTimeline]]></code>
10659
</InaccessibleMethod>
10760
<UndefinedGlobalVariable>
108-
<code>$config</code>
61+
<code><![CDATA[$config]]></code>
10962
</UndefinedGlobalVariable>
11063
</file>
11164
<file src="system/Email/Email.php">
11265
<LoopInvalidation>
113-
<code>$timestamp</code>
66+
<code><![CDATA[$timestamp]]></code>
11467
</LoopInvalidation>
11568
</file>
11669
<file src="system/HTTP/Files/FileCollection.php">
11770
<EmptyArrayAccess>
118-
<code>$output[$name]</code>
71+
<code><![CDATA[$output[$name]]]></code>
11972
</EmptyArrayAccess>
12073
</file>
12174
<file src="system/Helpers/text_helper.php">
12275
<LoopInvalidation>
123-
<code>$count</code>
124-
<code>$count</code>
125-
<code>$count</code>
76+
<code><![CDATA[$count]]></code>
77+
<code><![CDATA[$count]]></code>
78+
<code><![CDATA[$count]]></code>
12679
</LoopInvalidation>
12780
</file>
12881
<file src="system/I18n/TimeTrait.php">
12982
<MissingImmutableAnnotation>
130-
<code>#[ReturnTypeWillChange]</code>
131-
<code>#[ReturnTypeWillChange]</code>
132-
<code>#[ReturnTypeWillChange]</code>
83+
<code><![CDATA[#[ReturnTypeWillChange]]]></code>
84+
<code><![CDATA[#[ReturnTypeWillChange]]]></code>
85+
<code><![CDATA[#[ReturnTypeWillChange]]]></code>
13386
</MissingImmutableAnnotation>
13487
</file>
13588
<file src="system/Test/ControllerResponse.php">
@@ -139,39 +92,39 @@
13992
</file>
14093
<file src="system/View/Parser.php">
14194
<UndefinedDocblockClass>
142-
<code><![CDATA[array<string, list<parser_callable_string>|parser_callable_string|parser_callable>]]></code>
143-
<code><![CDATA[array<string, list<parser_callable_string>|parser_callable_string|parser_callable>]]></code>
144-
<code>protected $plugins = [];</code>
145-
<code>protected $plugins = [];</code>
95+
<code><![CDATA[array<string, array<parser_callable_string>|parser_callable_string|parser_callable>]]></code>
96+
<code><![CDATA[array<string, array<parser_callable_string>|parser_callable_string|parser_callable>]]></code>
97+
<code><![CDATA[protected $plugins = [];]]></code>
98+
<code><![CDATA[protected $plugins = [];]]></code>
14699
</UndefinedDocblockClass>
147100
</file>
148101
<file src="tests/_support/Config/Filters.php">
149102
<UndefinedGlobalVariable>
150-
<code>$filters</code>
103+
<code><![CDATA[$filters]]></code>
151104
</UndefinedGlobalVariable>
152105
</file>
153106
<file src="tests/_support/Config/Routes.php">
154107
<UndefinedGlobalVariable>
155-
<code>$routes</code>
156-
<code>$routes</code>
157-
<code>$routes</code>
158-
<code>$routes</code>
159-
<code>$routes</code>
108+
<code><![CDATA[$routes]]></code>
109+
<code><![CDATA[$routes]]></code>
110+
<code><![CDATA[$routes]]></code>
111+
<code><![CDATA[$routes]]></code>
112+
<code><![CDATA[$routes]]></code>
160113
</UndefinedGlobalVariable>
161114
</file>
162115
<file src="tests/_support/View/Cells/colors.php">
163116
<InvalidScope>
164-
<code>$this</code>
117+
<code><![CDATA[$this]]></code>
165118
</InvalidScope>
166119
</file>
167120
<file src="tests/system/CLI/ConsoleTest.php">
168121
<DuplicateArrayKey>
169-
<code>$command</code>
122+
<code><![CDATA[$command]]></code>
170123
</DuplicateArrayKey>
171124
</file>
172125
<file src="tests/system/CommonFunctionsTest.php">
173126
<UndefinedClass>
174-
<code>UnexsistenceClass</code>
127+
<code><![CDATA[UnexsistenceClass]]></code>
175128
</UndefinedClass>
176129
</file>
177130
<file src="tests/system/Config/FactoriesTest.php">
@@ -183,14 +136,14 @@
183136
</file>
184137
<file src="tests/system/Database/Live/OCI8/CallStoredProcedureTest.php">
185138
<UndefinedConstant>
186-
<code>OCI_ASSOC</code>
187-
<code>OCI_B_CURSOR</code>
188-
<code>OCI_RETURN_NULLS</code>
139+
<code><![CDATA[OCI_ASSOC]]></code>
140+
<code><![CDATA[OCI_B_CURSOR]]></code>
141+
<code><![CDATA[OCI_RETURN_NULLS]]></code>
189142
</UndefinedConstant>
190143
</file>
191144
<file src="tests/system/Entity/EntityTest.php">
192145
<EmptyArrayAccess>
193-
<code>$current[$key]</code>
146+
<code><![CDATA[$current[$key]]]></code>
194147
</EmptyArrayAccess>
195148
</file>
196149
<file src="tests/system/HTTP/RedirectResponseTest.php">
@@ -200,7 +153,7 @@
200153
</file>
201154
<file src="tests/system/Test/ControllerTestTraitTest.php">
202155
<UndefinedClass>
203-
<code>NeverHeardOfIt</code>
156+
<code><![CDATA[NeverHeardOfIt]]></code>
204157
</UndefinedClass>
205158
</file>
206159
</files>

system/Config/View.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ class View extends BaseConfig
5959
/**
6060
* Built-in View filters.
6161
*
62+
* @psalm-suppress UndefinedDocblockClass
63+
*
6264
* @var array<string, string>
6365
* @phpstan-var array<string, parser_callable_string>
6466
*/
@@ -89,6 +91,8 @@ class View extends BaseConfig
8991
/**
9092
* Built-in View plugins.
9193
*
94+
* @psalm-suppress UndefinedDocblockClass
95+
*
9296
* @var array<string, callable|list<string>|string>
9397
* @phpstan-var array<string, array<parser_callable_string>|parser_callable_string|parser_callable>
9498
*/

0 commit comments

Comments
 (0)