Skip to content

Commit 25cf433

Browse files
authored
chore: bump phpstan to ^2.1.55 and fix callable docblock notice (#10219)
1 parent 2a1c348 commit 25cf433

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎app/Config/View.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class View extends BaseView
3939
* by the core Parser by creating aliases that will be replaced with
4040
* any callable. Can be single or tag pair.
4141
*
42-
* @var array<string, (callable(mixed): mixed)|((callable(mixed): mixed)&string)|list<(callable(mixed): mixed)&string>>
42+
* @var array<string, (callable(mixed...): mixed)|((callable(mixed...): mixed)&string)|list<(callable(mixed...): mixed)&string>>
4343
*/
4444
public $plugins = [];
4545

‎composer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"mikey179/vfsstream": "^1.6.12",
2525
"nexusphp/tachycardia": "^2.0",
2626
"phpstan/extension-installer": "^1.4",
27-
"phpstan/phpstan": "^2.1.36",
27+
"phpstan/phpstan": "^2.1.55",
2828
"phpstan/phpstan-strict-rules": "^2.0",
2929
"phpunit/phpcov": "^9.0.2 || ^10.0",
3030
"phpunit/phpunit": "^10.5.16 || ^11.2",

‎system/Config/View.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class View extends BaseConfig
4848
*
4949
* @psalm-suppress UndefinedDocblockClass
5050
*
51-
* @var array<string, (callable(mixed): mixed)|((callable(mixed): mixed)&string)|list<(callable(mixed): mixed)&string>>
51+
* @var array<string, (callable(mixed...): mixed)|((callable(mixed...): mixed)&string)|list<(callable(mixed...): mixed)&string>>
5252
*/
5353
public $plugins = [];
5454

@@ -84,7 +84,7 @@ class View extends BaseConfig
8484
/**
8585
* Built-in View plugins.
8686
*
87-
* @var array<string, (callable(mixed): mixed)|((callable(mixed): mixed)&string)|list<(callable(mixed): mixed)&string>>
87+
* @var array<string, (callable(mixed...): mixed)|((callable(mixed...): mixed)&string)|list<(callable(mixed...): mixed)&string>>
8888
*/
8989
protected $corePlugins = [
9090
'csp_script_nonce' => '\CodeIgniter\View\Plugins::cspScriptNonce',

‎system/View/Parser.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class Parser extends View
6060
/**
6161
* Stores any plugins registered at run-time.
6262
*
63-
* @var array<string, (callable(mixed): mixed)|((callable(mixed): mixed)&string)|list<(callable(mixed): mixed)&string>>
63+
* @var array<string, (callable(mixed...): mixed)|((callable(mixed...): mixed)&string)|list<(callable(mixed...): mixed)&string>>
6464
*/
6565
protected $plugins = [];
6666

0 commit comments

Comments
 (0)