Skip to content

Commit d45dd59

Browse files
committed
docs: change phpstan-type names
1 parent cffbd87 commit d45dd59

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

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)