kba-team / cakephp
The CakePHP framework
2.11.0
2024-04-03 11:55 UTC
Requires
- php: ^8.0
Requires (Dev)
- cakephp/cakephp-codesniffer: ^1.0.0
- phpunit/phpunit: ^9.5
Suggests
- ext-mcrypt: You need to install ext-openssl or ext-mcrypt to use AES-256 encryption
- ext-openssl: You need to install ext-openssl or ext-mcrypt to use AES-256 encryption
Replaces
- cakephp/cakephp: ^2.10
This package is not auto-updated.
Last update: 2024-11-14 13:19:35 UTC
README
For original README content please check original repository: https://github.com/cakephp/cakephp/tree/2.10.24
Migration
Here are steps I took to migrate my project through all versions to PHP 8.1, maybe it can inspire you:
- Decouple your tests from
CakeTestCase
and other utilities that are coupled to old PHPUnit version. - Once decoupled you can upgrade PHPUnit to the newest version accordingly to your PHP version.
- Start upgrading gradually to newer versions of PHP. CakePHP 2 works perfectly fine on 7.0 - 7.4.
- Once you're on 7.4 you can switch to 8 and this fork.
Installation
This repository is not available in packagist, therefore your project's composer.json
must be changed to point to custom repository.
Example configuration:
{
"require": {
"cakephp/cakephp": "dev-master as 2.10.24",
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/kba-team/cakephp2-php8"
}
]
}
It means that composer will look at master
branch of repository configured under repositories
to resolve update of cakephp/cakephp
package.
Changelog
2024-02-02
str_len
deprecation warning fix in CakeResponse (passing null instead ofstring
)
2024-01-19
strotime()
andpreg_split()
in CakeResponse deprecation warning fixes (passing null)
2024-01-11
preg_replace
deprecation warning fixes (passing null instead ofstring
)
2023-12-22
preg_quote()
passing null fix
2023-12-19
- Muted dynamic property creation warnings in Controller.php
- Fix passing a null input to h function (PR #56)
- Fix Hash class callback callable pattern deprecated (PR #58)
2023-11-13
- Silence dynamic property creation warning in Model.php
2023-11-02
- Fixed: unitialized property in Debugger.php
2023-10-20
- Fallback to empty string from
env()
in basics.php and request handler.
2023-10-19
- Removed usage of deprecated
redis->getKeys()
in favor ofredis->keys()
. - Added docker-compose setup to run tests locally.
2023-09-18
- Fix for
ShellDispatcher
wherenull
was passed tostrpos
function.
2023-08-18
- Fixed PHP8 deprecation notices. Related mostly to passing null as a
$haystack
value.
2023-06-02
- Fixed PHP 8.2 deprecation notices in CakeEvent:
Creation of dynamic property ... is deprecated.
2023-02-19
- Fixed PHP 8.1 MySQL test suite.
2023-02-11
- Fixed PostgreSQL test suite.
2023-01-30
PaginatorHelper
fix.
2023-01-22
- Fixed views cache when relative time is specified.
2023-01-11
- Fixed test suite to run under PHPUnit 9.5 and PHP8. Big kudos to @tenkoma 👏
2022-10-20
MailTransport
fix.
2022-10-08
- Support for
full_path
when uploading a file, PHP 8.1 only.
2022-09-27
- Fixed multiple
CREATE UNIQUE INDEX
statements from schema shell that did not work on PostgreSQL.
2022-03-08
- Fixed passing
params["pass"]
argument toinvokeArgs
when resolving controller action -array_values
used to avoid problems with named parameters.
2022-03-03
- Removed
String
class.
2022-03-02
- Fixed
ConsoleErrorHandler::handleError
to respect error suppression.
2022-01-31
- Fixed
Folder->read
,array_values
is used to remove keys to prevent usign named arguments incall_user_func_array
2022-01-16
- Fix Shell
ReflectionMethod::__construct
default null argument in hasMethod
2022-01-15
- Readme file update - more explicit content.
2022-01-04
- Fixed more deprecation notices
strtoupper
+converting false to array
in Mysql.phppreg_match
where$subject = null
in CakeRoute.phpstrtoupper
in DboSource.php- Check history for details ☝️
2021-12-20
- Fixed deprecation notices in PHP 8.1 for production code implementations:
ArrayAccess
Countable
IteratorAggregate
- PHP 8.0 requirement in composer.json
- Warning: Tests are not updated, Cake's tests rely on old version of PHPUnit so running them may show a lot of deprecations notices. Added issue to cover it: #7
2021-02-24
- Fixed ErrorHandler accordingly to PHP8 migration guide. Otherwise, error handler is logging too much and doesn't respect configured
error_reporting
.