Skip to content

Commit 9e3839f

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into 4.5
2 parents 445994c + 472391c commit 9e3839f

File tree

4 files changed

+15
-20
lines changed

4 files changed

+15
-20
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"phpunit/phpcov": "^8.2",
3434
"phpunit/phpunit": "^9.1",
3535
"predis/predis": "^1.1 || ^2.0",
36-
"rector/rector": "0.18.6",
36+
"rector/rector": "0.18.8",
3737
"vimeo/psalm": "^5.0"
3838
},
3939
"suggest": {

psalm-baseline.xml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@
1010
<code>public $plugins = [];</code>
1111
</UndefinedDocblockClass>
1212
</file>
13-
<file src="system/Cache/FactoriesCache/FileVarExportHandler.php">
14-
<UndefinedVariable>
15-
<code>$val</code>
16-
</UndefinedVariable>
17-
</file>
1813
<file src="system/Cache/Handlers/MemcachedHandler.php">
1914
<UndefinedClass>
2015
<code>Memcache</code>
@@ -39,9 +34,9 @@
3934
</file>
4035
<file src="system/Config/View.php">
4136
<UndefinedDocblockClass>
42-
<code><![CDATA[array<string, ParserCallableString>]]></code>
43-
<code><![CDATA[array<string, array<ParserCallableString>|ParserCallableString|ParserCallable>]]></code>
44-
<code><![CDATA[array<string, array<ParserCallableString>|ParserCallableString|ParserCallable>]]></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>
39+
<code><![CDATA[array<string, parser_callable_string>]]></code>
4540
<code><![CDATA[protected $coreFilters = [
4641
'abs' => '\abs',
4742
'capitalize' => '\CodeIgniter\View\Filters::capitalize',
@@ -144,8 +139,8 @@
144139
</file>
145140
<file src="system/View/Parser.php">
146141
<UndefinedDocblockClass>
147-
<code><![CDATA[array<string, array<ParserCallableString>|ParserCallableString|ParserCallable>]]></code>
148-
<code><![CDATA[array<string, array<ParserCallableString>|ParserCallableString|ParserCallable>]]></code>
142+
<code><![CDATA[array<string, array<parser_callable_string>|parser_callable_string|parser_callable>]]></code>
143+
<code><![CDATA[array<string, array<parser_callable_string>|parser_callable_string|parser_callable>]]></code>
149144
<code>protected $plugins = [];</code>
150145
<code>protected $plugins = [];</code>
151146
</UndefinedDocblockClass>

system/Config/View.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
/**
1717
* View configuration
1818
*
19-
* @phpstan-type ParserCallable (callable(mixed): mixed)
20-
* @phpstan-type ParserCallableString (callable(mixed): mixed)&string
19+
* @phpstan-type parser_callable (callable(mixed): mixed)
20+
* @phpstan-type parser_callable_string (callable(mixed): mixed)&string
2121
*/
2222
class View extends BaseConfig
2323
{
@@ -40,7 +40,7 @@ class View extends BaseConfig
4040
* @psalm-suppress UndefinedDocblockClass
4141
*
4242
* @var array<string, string>
43-
* @phpstan-var array<string, ParserCallableString>
43+
* @phpstan-var array<string, parser_callable_string>
4444
*/
4545
public $filters = [];
4646

@@ -52,15 +52,15 @@ class View extends BaseConfig
5252
* @psalm-suppress UndefinedDocblockClass
5353
*
5454
* @var array<string, array<string>|callable|string>
55-
* @phpstan-var array<string, array<ParserCallableString>|ParserCallableString|ParserCallable>
55+
* @phpstan-var array<string, array<parser_callable_string>|parser_callable_string|parser_callable>
5656
*/
5757
public $plugins = [];
5858

5959
/**
6060
* Built-in View filters.
6161
*
6262
* @var array<string, string>
63-
* @phpstan-var array<string, ParserCallableString>
63+
* @phpstan-var array<string, parser_callable_string>
6464
*/
6565
protected $coreFilters = [
6666
'abs' => '\abs',
@@ -90,7 +90,7 @@ class View extends BaseConfig
9090
* Built-in View plugins.
9191
*
9292
* @var array<string, array<string>|callable|string>
93-
* @phpstan-var array<string, array<ParserCallableString>|ParserCallableString|ParserCallable>
93+
* @phpstan-var array<string, array<parser_callable_string>|parser_callable_string|parser_callable>
9494
*/
9595
protected $corePlugins = [
9696
'csp_script_nonce' => '\CodeIgniter\View\Plugins::cspScriptNonce',

system/View/Parser.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
/**
2121
* Class for parsing pseudo-vars
2222
*
23-
* @phpstan-type ParserCallable (callable(mixed): mixed)
24-
* @phpstan-type ParserCallableString (callable(mixed): mixed)&string
23+
* @phpstan-type parser_callable (callable(mixed): mixed)
24+
* @phpstan-type parser_callable_string (callable(mixed): mixed)&string
2525
*
2626
* @see \CodeIgniter\View\ParserTest
2727
*/
@@ -64,7 +64,7 @@ class Parser extends View
6464
* Stores any plugins registered at run-time.
6565
*
6666
* @var array<string, array<string>|callable|string>
67-
* @phpstan-var array<string, array<ParserCallableString>|ParserCallableString|ParserCallable>
67+
* @phpstan-var array<string, array<parser_callable_string>|parser_callable_string|parser_callable>
6868
*/
6969
protected $plugins = [];
7070

0 commit comments

Comments
 (0)