File tree Expand file tree Collapse file tree 7 files changed +8
-12
lines changed
tests/TestCase/Controller Expand file tree Collapse file tree 7 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 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
77A skeleton for creating applications with [ CakePHP] ( https://cakephp.org ) 5.x.
88
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 101101if (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/*
Original file line number Diff line number Diff 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 ' ,
Original file line number Diff line number Diff line change 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 ' )) : ?>
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 : ?>
Original file line number Diff line number Diff line change 2323
2424/**
2525 * PagesControllerTest class
26- *
27- * @uses \App\Controller\PagesController
2826 */
2927class PagesControllerTest extends TestCase
3028{
Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments