Skip to content

Commit 7d8d48a

Browse files
authored
Merge pull request codeigniter4projects#415 from kenjis/update-ci-to-444
Update to CI v4.4.4
2 parents 71fae58 + 3d5ff7a commit 7d8d48a

24 files changed

Lines changed: 560 additions & 429 deletions

app/Config/App.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ class App extends BaseConfig
2727
* 'http://accounts.example.com/':
2828
* ['media.example.com', 'accounts.example.com']
2929
*
30-
* @var string[]
31-
* @phpstan-var list<string>
30+
* @var list<string>
3231
*/
3332
public array $allowedHostnames = [];
3433

app/Config/Autoload.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class Autoload extends AutoloadConfig
4141
* 'App' => APPPATH
4242
* ];
4343
*
44-
* @var array<string, string>
44+
* @var array<string, list<string>|string>
4545
*/
4646
public $psr4 = [
4747
APP_NAMESPACE => APPPATH, // For custom app namespace
@@ -80,8 +80,7 @@ class Autoload extends AutoloadConfig
8080
* '/path/to/my/file.php',
8181
* ];
8282
*
83-
* @var string[]
84-
* @phpstan-var list<string>
83+
* @var list<string>
8584
*/
8685
public $files = [];
8786

@@ -94,8 +93,7 @@ class Autoload extends AutoloadConfig
9493
* 'form',
9594
* ];
9695
*
97-
* @var string[]
98-
* @phpstan-var list<string>
96+
* @var list<string>
9997
*/
10098
public $helpers = [];
10199
}

app/Config/Cache.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Config;
44

5+
use CodeIgniter\Cache\CacheInterface;
56
use CodeIgniter\Cache\Handlers\DummyHandler;
67
use CodeIgniter\Cache\Handlers\FileHandler;
78
use CodeIgniter\Cache\Handlers\MemcachedHandler;
@@ -156,7 +157,7 @@ class Cache extends BaseConfig
156157
* This is an array of cache engine alias' and class names. Only engines
157158
* that are listed here are allowed to be used.
158159
*
159-
* @var array<string, string>
160+
* @var array<string, class-string<CacheInterface>>
160161
*/
161162
public array $validHandlers = [
162163
'dummy' => DummyHandler::class,

app/Config/Email.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Email extends BaseConfig
2626
public string $mailPath = '/usr/sbin/sendmail';
2727

2828
/**
29-
* SMTP Server Address
29+
* SMTP Server Hostname
3030
*/
3131
public string $SMTPHost = '';
3232

app/Config/Filters.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ class Filters extends BaseConfig
1515
* Configures aliases for Filter classes to
1616
* make reading things nicer and simpler.
1717
*
18-
* @var array<string, string>
19-
* @phpstan-var array<string, class-string>
18+
* @var array<string, class-string|list<class-string>> [filter_name => classname]
19+
* or [filter_name => [classname1, classname2, ...]]
2020
*/
2121
public array $aliases = [
2222
'csrf' => CSRF::class,
@@ -30,8 +30,7 @@ class Filters extends BaseConfig
3030
* List of filter aliases that are always
3131
* applied before and after every request.
3232
*
33-
* @var array<string, array<string, array<string, string>>>|array<string, array<string>>
34-
* @phpstan-var array<string, list<string>>|array<string, array<string, array<string, string>>>
33+
* @var array<string, array<string, array<string, string>>>|array<string, list<string>>
3534
*/
3635
public array $globals = [
3736
'before' => [

app/Config/Kint.php

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
namespace Config;
44

55
use CodeIgniter\Config\BaseConfig;
6+
use Kint\Parser\ConstructablePluginInterface;
67
use Kint\Renderer\AbstractRenderer;
8+
use Kint\Renderer\Rich\TabPluginInterface;
9+
use Kint\Renderer\Rich\ValuePluginInterface;
710

811
/**
912
* --------------------------------------------------------------------------
@@ -23,7 +26,11 @@ class Kint extends BaseConfig
2326
|--------------------------------------------------------------------------
2427
*/
2528

29+
/**
30+
* @var list<class-string<ConstructablePluginInterface>|ConstructablePluginInterface>|null
31+
*/
2632
public $plugins;
33+
2734
public int $maxDepth = 6;
2835
public bool $displayCalledFrom = true;
2936
public bool $expanded = false;
@@ -35,13 +42,16 @@ class Kint extends BaseConfig
3542
*/
3643
public string $richTheme = 'aante-light.css';
3744
public bool $richFolder = false;
45+
public int $richSort = AbstractRenderer::SORT_FULL;
3846

3947
/**
40-
* @psalm-suppress UndefinedClass
48+
* @var array<string, class-string<ValuePluginInterface>>|null
4149
*/
42-
public int $richSort = AbstractRenderer::SORT_FULL;
43-
4450
public $richObjectPlugins;
51+
52+
/**
53+
* @var array<string, class-string<TabPluginInterface>>|null
54+
*/
4555
public $richTabPlugins;
4656

4757
/*

app/Config/Migrations.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ class Migrations extends BaseConfig
2525
*
2626
* This is the name of the table that will store the current migrations state.
2727
* When migrations runs it will store in a database table which migration
28-
* level the system is at. It then compares the migration level in this
29-
* table to the $config['migration_version'] if they are not the same it
30-
* will migrate up. This must be set.
28+
* files have already been run.
3129
*/
3230
public string $table = 'migrations';
3331

app/Config/Modules.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class Modules extends BaseModules
5858
* ],
5959
* ]
6060
*
61-
* @var array
61+
* @var array{only?: list<string>, exclude?: list<string>}
6262
*/
6363
public $composerPackages = [];
6464

@@ -72,7 +72,7 @@ class Modules extends BaseModules
7272
*
7373
* If it is not listed, only the base application elements will be used.
7474
*
75-
* @var string[]
75+
* @var list<string>
7676
*/
7777
public $aliases = [
7878
'events',

app/Config/Publisher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Publisher extends BasePublisher
1919
* result in a PublisherException. Files that do no fit the
2020
* pattern will cause copy/merge to fail.
2121
*
22-
* @var array<string,string>
22+
* @var array<string, string>
2323
*/
2424
public $restrictions = [
2525
ROOTPATH => '*',

app/Config/Session.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Session extends BaseConfig
1919
* - `CodeIgniter\Session\Handlers\MemcachedHandler`
2020
* - `CodeIgniter\Session\Handlers\RedisHandler`
2121
*
22-
* @phpstan-var class-string<BaseHandler>
22+
* @var class-string<BaseHandler>
2323
*/
2424
public string $driver = FileHandler::class;
2525

0 commit comments

Comments
 (0)