Skip to content

Commit db7c99e

Browse files
committed
Merge branch '5.x' into 5.next
2 parents a8f3e7e + effe937 commit db7c99e

7 files changed

Lines changed: 16 additions & 40 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
php-version: ['8.1', '8.2']
23+
php-version: ['8.1', '8.3']
2424
dependencies: ['highest']
2525
include:
2626
- php-version: '8.1'
@@ -38,7 +38,7 @@ jobs:
3838
coverage: none
3939

4040
- name: Composer install
41-
uses: ramsey/composer-install@v2
41+
uses: ramsey/composer-install@v3
4242
with:
4343
dependency-versions: ${{ matrix.dependencies }}
4444
composer-options: ${{ matrix.composer-options }}
@@ -67,7 +67,7 @@ jobs:
6767
tools: cs2pr, phpstan:1.10
6868

6969
- name: Composer install
70-
uses: ramsey/composer-install@v2
70+
uses: ramsey/composer-install@v3
7171

7272
- name: Run PHP CodeSniffer
7373
run: vendor/bin/phpcs --report=checkstyle | cs2pr

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
],
5353
"cs-check": "phpcs --colors -p",
5454
"cs-fix": "phpcbf --colors -p",
55-
"stan": "phpstan analyse",
55+
"stan": "phpstan analyze",
5656
"test": "phpunit --colors=always"
5757
}
5858
}

config/app.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -378,11 +378,8 @@
378378
* Avoid using `.` in cookie names, as PHP will drop sessions from cookies with `.` in the name.
379379
* - `cookiePath` - The url path for which session cookie is set. Maps to the
380380
* `session.cookie_path` php.ini config. Defaults to base path of app.
381-
* - `timeout` - The time in minutes the session should be valid for.
382-
* Pass 0 to disable checking timeout.
383-
* Please note that php.ini's session.gc_maxlifetime must be equal to or greater
384-
* than the largest Session['timeout'] in all served websites for it to have the
385-
* desired effect.
381+
* - `timeout` - The time in minutes a session can be 'idle'. If no request is received in
382+
* this duration, the session will be expired and rotated. Pass 0 to disable idle timeout checks.
386383
* - `defaults` - The default configuration set to use as a basis for your session.
387384
* There are four built-in options: php, cake, cache, database.
388385
* - `handler` - Can be used to enable a custom session handler. Expects an
@@ -391,6 +388,14 @@
391388
* and `DatabaseSession` engines.
392389
* - `ini` - An associative array of additional 'session.*` ini values to set.
393390
*
391+
* Within the `ini` key, you will likely want to define:
392+
*
393+
* - `session.cookie_lifetime` - The number of seconds that cookies are valid for. This
394+
* should be longer than `Session.timeout`.
395+
* - `session.gc_maxlifetime` - The number of seconds after which a session is considered 'garbage'
396+
* that can be deleted by PHP's session cleanup behavior. This value should be greater than both
397+
* `Sesssion.timeout` and `session.cookie_lifetime`.
398+
*
394399
* The built-in `defaults` options are:
395400
*
396401
* - 'php' - Uses settings defined in your php.ini.

config/bootstrap.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@
3434
use Cake\Cache\Cache;
3535
use Cake\Core\Configure;
3636
use Cake\Core\Configure\Engine\PhpConfig;
37-
use Cake\Database\Type\StringType;
38-
use Cake\Database\TypeFactory;
3937
use Cake\Datasource\ConnectionManager;
4038
use Cake\Error\ErrorTrap;
4139
use Cake\Error\ExceptionTrap;

psalm.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
88
>
99
<projectFiles>
10-
<directory name="src" />
10+
<directory name="src/"/>
1111
<ignoreFiles>
12-
<directory name="vendor" />
12+
<directory name="vendor/"/>
1313
</ignoreFiles>
1414
</projectFiles>
1515
</psalm>

templates/Error/error400.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
<?php
22
/**
33
* @var \App\View\AppView $this
4-
* @var \Cake\Database\StatementInterface $error
54
* @var string $message
65
* @var string $url
76
*/
87
use Cake\Core\Configure;
9-
use Cake\Error\Debugger;
108

119
$this->layout = 'error';
1210

@@ -17,21 +15,7 @@
1715
$this->assign('templateName', 'error400.php');
1816

1917
$this->start('file');
20-
?>
21-
<?php if (!empty($error->queryString)) : ?>
22-
<p class="notice">
23-
<strong>SQL Query: </strong>
24-
<?= h($error->queryString) ?>
25-
</p>
26-
<?php endif; ?>
27-
<?php if (!empty($error->params)) : ?>
28-
<strong>SQL Query Params: </strong>
29-
<?php Debugger::dump($error->params) ?>
30-
<?php endif; ?>
31-
32-
<?php
3318
echo $this->element('auto_table_warning');
34-
3519
$this->end();
3620
endif;
3721
?>

templates/Error/error500.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22
/**
33
* @var \App\View\AppView $this
4-
* @var \Cake\Database\StatementInterface $error
54
* @var string $message
65
* @var string $url
76
*/
@@ -18,16 +17,6 @@
1817

1918
$this->start('file');
2019
?>
21-
<?php if (!empty($error->queryString)) : ?>
22-
<p class="notice">
23-
<strong>SQL Query: </strong>
24-
<?= h($error->queryString) ?>
25-
</p>
26-
<?php endif; ?>
27-
<?php if (!empty($error->params)) : ?>
28-
<strong>SQL Query Params: </strong>
29-
<?php Debugger::dump($error->params) ?>
30-
<?php endif; ?>
3120
<?php if ($error instanceof Error) : ?>
3221
<?php $file = $error->getFile() ?>
3322
<?php $line = $error->getLine() ?>

0 commit comments

Comments
 (0)