Skip to content

Commit 396cc14

Browse files
authored
Merge pull request #1027 from cakephp/5.next-merge
merge 5.x => 5.next
2 parents 6ad5540 + 6b774dc commit 396cc14

File tree

7 files changed

+8
-12
lines changed

7 files changed

+8
-12
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# CakePHP Application Skeleton
22

3-
![Build Status](https://github.com/cakephp/app/actions/workflows/ci.yml/badge.svg?branch=master)
3+
![Build Status](https://github.com/cakephp/app/actions/workflows/ci.yml/badge.svg?branch=5.x)
44
[![Total Downloads](https://img.shields.io/packagist/dt/cakephp/app.svg?style=flat-square)](https://packagist.org/packages/cakephp/app)
5-
[![PHPStan](https://img.shields.io/badge/PHPStan-level%207-brightgreen.svg?style=flat-square)](https://github.com/phpstan/phpstan)
5+
[![PHPStan](https://img.shields.io/badge/PHPStan-level%208-brightgreen.svg?style=flat-square)](https://github.com/phpstan/phpstan)
66

77
A skeleton for creating applications with [CakePHP](https://cakephp.org) 5.x.
88

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"homepage": "https://cakephp.org",
77
"require": {
88
"php": ">=8.1",
9-
"cakephp/cakephp": "dev-5.next as 5.1.0",
9+
"cakephp/cakephp": "5.1.*",
1010
"cakephp/migrations": "^4.0.0",
1111
"cakephp/plugin-installer": "^2.0",
1212
"mobiledetect/mobiledetectlib": "^4.8.03"

config/bootstrap.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@
101101
if (Configure::read('debug')) {
102102
Configure::write('Cache._cake_model_.duration', '+2 minutes');
103103
Configure::write('Cache._cake_translations_.duration', '+2 minutes');
104-
// disable router cache during development
105-
Configure::write('Cache._cake_routes_.duration', '+2 seconds');
106104
}
107105

108106
/*

src/Console/Installer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ class Installer
3434
{
3535
/**
3636
* An array of directories to be made writable
37+
*
38+
* @var list<string>
3739
*/
3840
public const WRITABLE_DIRS = [
3941
'logs',

templates/Pages/home.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,8 @@
123123

124124
<?php if (extension_loaded('openssl')) : ?>
125125
<li class="bullet success">Your version of PHP has the openssl extension loaded.</li>
126-
<?php elseif (extension_loaded('mcrypt')) : ?>
127-
<li class="bullet success">Your version of PHP has the mcrypt extension loaded.</li>
128126
<?php else : ?>
129-
<li class="bullet problem">Your version of PHP does NOT have the openssl or mcrypt extension loaded.</li>
127+
<li class="bullet problem">Your version of PHP does NOT have the openssl extension loaded.</li>
130128
<?php endif; ?>
131129

132130
<?php if (extension_loaded('intl')) : ?>
@@ -155,7 +153,7 @@
155153
<li class="bullet problem">Your logs directory is NOT writable.</li>
156154
<?php endif; ?>
157155

158-
<?php $settings = Cache::getConfig('_cake_core_'); ?>
156+
<?php $settings = Cache::getConfig('_cake_translations_'); ?>
159157
<?php if (!empty($settings)) : ?>
160158
<li class="bullet success">The <em><?= h($settings['className']) ?></em> is being used for core caching. To change the config edit config/app.php</li>
161159
<?php else : ?>

tests/TestCase/Controller/PagesControllerTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323

2424
/**
2525
* PagesControllerTest class
26-
*
27-
* @uses \App\Controller\PagesController
2826
*/
2927
class PagesControllerTest extends TestCase
3028
{

webroot/index.php

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

2222
$url = parse_url(urldecode($_SERVER['REQUEST_URI']));
2323
$file = __DIR__ . $url['path'];
24-
if (strpos($url['path'], '..') === false && strpos($url['path'], '.') !== false && is_file($file)) {
24+
if (!str_contains($url['path'], '..') && str_contains($url['path'], '.') && is_file($file)) {
2525
return false;
2626
}
2727
}

0 commit comments

Comments
 (0)