Skip to content

Commit 77f3971

Browse files
committed
Merge branch '4.x' into 4.next
2 parents e90d8aa + f30912a commit 77f3971

22 files changed

Lines changed: 110 additions & 46 deletions

.github/workflows/ci.yml

Lines changed: 9 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ permissions:
1515

1616
jobs:
1717
testsuite:
18-
runs-on: ubuntu-18.04
18+
runs-on: ubuntu-22.04
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
php-version: ['7.4', '8.0', '8.1']
22+
php-version: ['7.4', '8.0', '8.1', '8.2']
2323
name: PHP ${{ matrix.php-version }}
2424

2525
steps:
@@ -34,11 +34,7 @@ jobs:
3434

3535
- name: Composer install
3636
run: |
37-
if [[ ${{ matrix.php-version }} == '8.1' ]]; then
38-
composer update --ignore-platform-reqs
39-
else
40-
composer update
41-
fi
37+
composer update
4238
composer run-script post-install-cmd --no-interaction
4339
4440
- name: Run PHPUnit
@@ -49,8 +45,8 @@ jobs:
4945
DATABASE_TEST_URL: sqlite://./testdb.sqlite
5046

5147
coding-standard:
52-
name: Coding Standard
53-
runs-on: ubuntu-18.04
48+
name: Coding Standard & Static Analysis
49+
runs-on: ubuntu-22.04
5450

5551
steps:
5652
- uses: actions/checkout@v3
@@ -61,29 +57,14 @@ jobs:
6157
php-version: '7.4'
6258
extensions: mbstring, intl
6359
coverage: none
60+
tools: cs2pr, phpstan:1
6461

6562
- name: Composer install
6663
run: composer install
6764

6865
- name: Run PHP CodeSniffer
69-
run: composer cs-check
70-
71-
static-analysis:
72-
name: Static Analysis
73-
runs-on: ubuntu-18.04
74-
75-
steps:
76-
- uses: actions/checkout@v3
77-
78-
- name: Setup PHP
79-
uses: shivammathur/setup-php@v2
80-
with:
81-
php-version: '7.4'
82-
extensions: mbstring, intl
83-
coverage: none
84-
85-
- name: Composer install
86-
run: composer require --dev phpstan/phpstan:^1.0.0
66+
run: vendor/bin/phpcs --report=checkstyle src/ tests/ | cs2pr
8767

8868
- name: Run phpstan
89-
run: vendor/bin/phpstan
69+
if: always()
70+
run: phpstan

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717

1818
steps:
19-
- uses: actions/stale@v6
19+
- uses: actions/stale@v7
2020
with:
2121
repo-token: ${{ secrets.GITHUB_TOKEN }}
2222
stale-issue-message: 'This issue is stale because it has been open for 120 days with no activity. Remove the `stale` label or comment or this will be closed in 15 days'

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ automated upgrades, so you have to do any updates manually.
4242

4343
## Configuration
4444

45-
Read and edit the environment specific `config/app_local.php` and setup the
45+
Read and edit the environment specific `config/app_local.php` and set up the
4646
`'Datasources'` and any other configuration relevant for your application.
4747
Other environment agnostic settings can be changed in `config/app.php`.
4848

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"cakephp/cakephp": "4.4.*",
1010
"cakephp/migrations": "^3.2",
1111
"cakephp/plugin-installer": "^1.3",
12-
"mobiledetect/mobiledetectlib": "^2.8"
12+
"mobiledetect/mobiledetectlib": "^3.74"
1313
},
1414
"require-dev": {
1515
"cakephp/bake": "^2.6",

config/bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104

105105
/*
106106
* Set the default server timezone. Using UTC makes time calculations / conversions easier.
107-
* Check http://php.net/manual/en/timezones.php for list of valid timezone strings.
107+
* Check https://php.net/manual/en/timezones.php for list of valid timezone strings.
108108
*/
109109
date_default_timezone_set(Configure::read('App.defaultTimezone'));
110110

phpstan.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ parameters:
22
level: 8
33
checkMissingIterableValueType: false
44
treatPhpDocTypesAsCertain: false
5+
checkGenericClassInNonGenericObjectType: false
56
paths:
67
- src/
78
excludePaths:

templates/Pages/home.php

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@
3636
$error .= '<br />' . $attributes['message'];
3737
}
3838
}
39+
if ($name === 'debug_kit') {
40+
$error = 'Try adding your current <b>top level domain</b> to the
41+
<a href="https://book.cakephp.org/debugkit/4/en/index.html#configuration" target="_blank">DebugKit.safeTld</a>
42+
config and reload.';
43+
if (!in_array('sqlite', \PDO::getAvailableDrivers())) {
44+
$error .= '<br />You need to install the PHP extension <code>pdo_sqlite</code> so DebugKit can work properly.';
45+
}
46+
}
3947
}
4048

4149
return compact('connected', 'error');
@@ -59,9 +67,7 @@
5967
</title>
6068
<?= $this->Html->meta('icon') ?>
6169

62-
<link href="https://fonts.googleapis.com/css?family=Raleway:400,700" rel="stylesheet">
63-
64-
<?= $this->Html->css(['normalize.min', 'milligram.min', 'cake', 'home']) ?>
70+
<?= $this->Html->css(['normalize.min', 'milligram.min', 'fonts', 'cake', 'home']) ?>
6571

6672
<?= $this->fetch('meta') ?>
6773
<?= $this->fetch('css') ?>
@@ -179,7 +185,7 @@
179185
<?php if ($result['connected']) : ?>
180186
<li class="bullet success">DebugKit can connect to the database.</li>
181187
<?php else : ?>
182-
<li class="bullet problem">DebugKit is <strong>not</strong> able to connect to the database.<br /><?= $result['error'] ?></li>
188+
<li class="bullet problem">There are configuration problems present which need to be fixed:<br /><?= $result['error'] ?></li>
183189
<?php endif; ?>
184190
<?php else : ?>
185191
<li class="bullet problem">DebugKit is <strong>not</strong> loaded.</li>
@@ -200,9 +206,9 @@
200206
<div class="column links">
201207
<h3>Help and Bug Reports</h3>
202208
<a target="_blank" rel="noopener" href="irc://irc.freenode.net/cakephp">irc.freenode.net #cakephp</a>
203-
<a target="_blank" rel="noopener" href="http://cakesf.herokuapp.com/">Slack</a>
209+
<a target="_blank" rel="noopener" href="https://slack-invite.cakephp.org/">Slack</a>
204210
<a target="_blank" rel="noopener" href="https://github.com/cakephp/cakephp/issues">CakePHP Issues</a>
205-
<a target="_blank" rel="noopener" href="http://discourse.cakephp.org/">CakePHP Forum</a>
211+
<a target="_blank" rel="noopener" href="https://discourse.cakephp.org/">CakePHP Forum</a>
206212
</div>
207213
</div>
208214
<hr>

templates/email/html/default.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @link https://cakephp.org CakePHP(tm) Project
1212
* @since 0.10.0
1313
* @license https://opensource.org/licenses/mit-license.php MIT License
14-
* @var \App\View\AppView $this
14+
* @var \Cake\View\View $this
1515
* @var string $content
1616
*/
1717

templates/email/text/default.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @link https://cakephp.org CakePHP(tm) Project
1212
* @since 0.10.0
1313
* @license https://opensource.org/licenses/mit-license.php MIT License
14-
* @var \App\View\AppView $this
14+
* @var \Cake\View\View $this
1515
* @var string $content
1616
*/
1717

templates/layout/default.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@
2727
</title>
2828
<?= $this->Html->meta('icon') ?>
2929

30-
<link href="https://fonts.googleapis.com/css?family=Raleway:400,700" rel="stylesheet">
31-
32-
<?= $this->Html->css(['normalize.min', 'milligram.min', 'cake']) ?>
30+
<?= $this->Html->css(['normalize.min', 'milligram.min', 'fonts', 'cake']) ?>
3331

3432
<?= $this->fetch('meta') ?>
3533
<?= $this->fetch('css') ?>

0 commit comments

Comments
 (0)