Skip to content

Commit 13d39ed

Browse files
committed
Merge branch '4.next' into 5.x
2 parents c5f8a27 + b75cc96 commit 13d39ed

9 files changed

Lines changed: 34 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,27 @@ jobs:
5050
env:
5151
DATABASE_TEST_URL: sqlite://./testdb.sqlite
5252

53-
cs-stan:
54-
uses: cakephp/.github/.github/workflows/cs-stan.yml@5.x
55-
secrets: inherit
53+
coding-standard:
54+
name: Coding Standard & Static Analysis
55+
runs-on: ubuntu-22.04
56+
57+
steps:
58+
- uses: actions/checkout@v3
59+
60+
- name: Setup PHP
61+
uses: shivammathur/setup-php@v2
62+
with:
63+
php-version: '8.1'
64+
extensions: mbstring, intl
65+
coverage: none
66+
tools: cs2pr, phpstan:1.10
67+
68+
- name: Composer install
69+
uses: ramsey/composer-install@v2
70+
71+
- name: Run PHP CodeSniffer
72+
run: vendor/bin/phpcs --report=checkstyle src/ tests/ | cs2pr
73+
74+
- name: Run phpstan
75+
if: always()
76+
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'

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"cakephp/cakephp-codesniffer": "^5.0",
1717
"cakephp/debug_kit": "5.x-dev",
1818
"josegonzalez/dotenv": "^3.2",
19-
"phpunit/phpunit": "^9.5.19"
19+
"phpunit/phpunit": "^9.6"
2020
},
2121
"suggest": {
2222
"markstory/asset_compress": "An asset compression plugin which provides file concatenation and a flexible filter system for preprocessing and minification.",

config/app_local.example.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
'password' => 'secret',
7171
'database' => 'test_myapp',
7272
//'schema' => 'myapp',
73-
'url' => env('DATABASE_TEST_URL', 'sqlite://127.0.0.1/tests.sqlite'),
73+
'url' => env('DATABASE_TEST_URL', 'sqlite://127.0.0.1/tmp/tests.sqlite'),
7474
],
7575
],
7676

src/Application.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function middleware(MiddlewareQueue $middlewareQueue): MiddlewareQueue
7979
$middlewareQueue
8080
// Catch any exceptions in the lower layers,
8181
// and make an error page/response
82-
->add(new ErrorHandlerMiddleware(Configure::read('Error')))
82+
->add(new ErrorHandlerMiddleware(Configure::read('Error'), $this))
8383

8484
// Handle plugin/theme assets like CakePHP normally does.
8585
->add(new AssetMiddleware([
@@ -126,7 +126,6 @@ public function services(ContainerInterface $container): void
126126
*/
127127
protected function bootstrapCli(): void
128128
{
129-
$this->addOptionalPlugin('Cake/Repl');
130129
$this->addOptionalPlugin('Bake');
131130

132131
$this->addPlugin('Migrations');

src/Controller/ErrorController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function initialize(): void
3838
/**
3939
* beforeFilter callback.
4040
*
41-
* @param \Cake\Event\EventInterface $event Event.
41+
* @param \Cake\Event\EventInterface<\App\Controller\ErrorController> $event Event.
4242
* @return \Cake\Http\Response|null|void
4343
*/
4444
public function beforeFilter(EventInterface $event)
@@ -48,7 +48,7 @@ public function beforeFilter(EventInterface $event)
4848
/**
4949
* beforeRender callback.
5050
*
51-
* @param \Cake\Event\EventInterface<\Cake\Controller\Controller> $event Event.
51+
* @param \Cake\Event\EventInterface<\App\Controller\ErrorController> $event Event.
5252
* @return \Cake\Http\Response|null|void
5353
*/
5454
public function beforeRender(EventInterface $event)
@@ -61,7 +61,7 @@ public function beforeRender(EventInterface $event)
6161
/**
6262
* afterFilter callback.
6363
*
64-
* @param \Cake\Event\EventInterface $event Event.
64+
* @param \Cake\Event\EventInterface<\App\Controller\ErrorController> $event Event.
6565
* @return \Cake\Http\Response|null|void
6666
*/
6767
public function afterFilter(EventInterface $event)

templates/Pages/home.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@
206206
<div class="row">
207207
<div class="column links">
208208
<h3>Help and Bug Reports</h3>
209-
<a target="_blank" rel="noopener" href="https://cakesf.herokuapp.com/">Slack</a>
209+
<a target="_blank" rel="noopener" href="https://slack-invite.cakephp.org/">Slack</a>
210210
<a target="_blank" rel="noopener" href="https://github.com/cakephp/cakephp/issues">CakePHP Issues</a>
211211
<a target="_blank" rel="noopener" href="https://discourse.cakephp.org/">CakePHP Forum</a>
212212
</div>

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

0 commit comments

Comments
 (0)