Skip to content

Commit 98d5cde

Browse files
committed
Merge branch '5.x' into 5.next
2 parents 0c338e2 + a72c303 commit 98d5cde

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

config/app.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Cake\Database\Driver\Mysql;
66
use Cake\Log\Engine\FileLog;
77
use Cake\Mailer\Transport\MailTransport;
8+
use function Cake\Core\env;
89

910
return [
1011
/*
@@ -443,4 +444,17 @@
443444
'safeTld' => env('DEBUG_KIT_SAFE_TLD', null),
444445
'ignoreAuthorization' => env('DEBUG_KIT_IGNORE_AUTHORIZATION', false),
445446
],
447+
448+
/**
449+
* TestSuite configuration.
450+
*
451+
* ## Options
452+
*
453+
* - `errorLevel` - Defaults to `E_ALL`. Can be set to `false` to disable overwrite error level.
454+
* - `fixtureStrategy` - Defaults to TruncateStrategy. Can be set to any class implementing FixtureStrategyInterface.
455+
*/
456+
'TestSuite' => [
457+
'errorLevel' => null,
458+
'fixtureStrategy' => null,
459+
],
446460
];

config/app_local.example.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<?php
2+
3+
use function Cake\Core\env;
4+
25
/*
36
* Local configuration file to provide any overrides to your app.php configuration.
47
* Copy and save this file as app_local.php and make changes as required.

config/bootstrap.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
use Cake\Mailer\TransportFactory;
4545
use Cake\Routing\Router;
4646
use Cake\Utility\Security;
47+
use function Cake\Core\env;
4748

4849
/*
4950
* Load global functions for collections, translations, debugging etc.

src/Controller/ErrorController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function initialize(): void
3939
* beforeFilter callback.
4040
*
4141
* @param \Cake\Event\EventInterface<\Cake\Controller\Controller> $event Event.
42-
* @return \Cake\Http\Response|null|void
42+
* @return void
4343
*/
4444
public function beforeFilter(EventInterface $event)
4545
{
@@ -49,7 +49,7 @@ public function beforeFilter(EventInterface $event)
4949
* beforeRender callback.
5050
*
5151
* @param \Cake\Event\EventInterface<\Cake\Controller\Controller> $event Event.
52-
* @return \Cake\Http\Response|null|void
52+
* @return void
5353
*/
5454
public function beforeRender(EventInterface $event)
5555
{
@@ -62,7 +62,7 @@ public function beforeRender(EventInterface $event)
6262
* afterFilter callback.
6363
*
6464
* @param \Cake\Event\EventInterface<\Cake\Controller\Controller> $event Event.
65-
* @return \Cake\Http\Response|null|void
65+
* @return void
6666
*/
6767
public function afterFilter(EventInterface $event)
6868
{

0 commit comments

Comments
 (0)