Skip to content

Commit 7a5d51f

Browse files
committed
Merge branch 'codeigniter4projects-develop' into develop
2 parents 65c2146 + fe9ec00 commit 7a5d51f

28 files changed

Lines changed: 565 additions & 434 deletions

.github/workflows/infection.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV
4949

5050
- name: Cache composer dependencies
51-
uses: actions/cache@v3
51+
uses: actions/cache@v4
5252
with:
5353
path: ${{ env.COMPOSER_CACHE_FILES_DIR }}
5454
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}-${{ hashFiles('**/composer.lock') }}

.github/workflows/phpcsfixer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV
5050

5151
- name: Cache composer dependencies
52-
uses: actions/cache@v3
52+
uses: actions/cache@v4
5353
with:
5454
path: ${{ env.COMPOSER_CACHE_FILES_DIR }}
5555
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}-${{ hashFiles('**/composer.lock') }}

.github/workflows/phpstan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV
5555

5656
- name: Cache composer dependencies
57-
uses: actions/cache@v3
57+
uses: actions/cache@v4
5858
with:
5959
path: ${{ env.COMPOSER_CACHE_FILES_DIR }}
6060
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}-${{ hashFiles('**/composer.lock') }}
@@ -64,7 +64,7 @@ jobs:
6464
run: mkdir -p build/phpstan
6565

6666
- name: Cache PHPStan results
67-
uses: actions/cache@v3
67+
uses: actions/cache@v4
6868
with:
6969
path: build/phpstan
7070
key: ${{ runner.os }}-phpstan-${{ github.sha }}

.github/workflows/phpunit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV
4646

4747
- name: Cache composer dependencies
48-
uses: actions/cache@v3
48+
uses: actions/cache@v4
4949
with:
5050
path: ${{ env.COMPOSER_CACHE_FILES_DIR }}
5151
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}-${{ hashFiles('**/composer.lock') }}

.github/workflows/rector.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV
5555

5656
- name: Cache composer dependencies
57-
uses: actions/cache@v3
57+
uses: actions/cache@v4
5858
with:
5959
path: ${{ env.COMPOSER_CACHE_FILES_DIR }}
6060
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}-${{ hashFiles('**/composer.lock') }}

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' => [

0 commit comments

Comments
 (0)