CakePHP 2 fork that supports PHP 8
Find a file
2021-12-21 23:29:35 +01:00
app tweak typo perfomance -> performance 2018-06-26 13:42:50 +09:00
lib/Cake Cake shell 'test' works - prints help info. 2021-12-21 23:29:35 +01:00
plugins allowing install/cake-wide plugins 2009-08-02 15:01:15 -07:00
vendors we still want the vendors folder - creating empty file to ensure the 2011-03-12 20:11:33 +01:00
.editorconfig Add formatting rules for .yml files to editorconfig. 2014-05-04 18:37:41 +05:30
.gitattributes Adding webfont formats as binary in .gitattributes 2015-01-29 16:38:01 +01:00
.gitignore added Eclipse paths to gitignore 2016-09-05 21:01:12 +02:00
.htaccess Add commented-out Apache pass-through for .well-known directory 2016-04-14 15:10:18 +02:00
.stickler.yml Make stickler ignore 2.x and 2.next branches. 2016-07-01 17:28:50 +05:30
.travis.yml Fix failures on PHP 7.4. Run phpcs on PHP 7.0 2019-12-05 15:11:35 +02:00
build.properties Update build config for new pear server. 2016-11-10 19:41:07 -05:00
build.xml Fix hostname. 2016-11-12 09:41:28 -05:00
composer.json Cake shell 'test' works - prints help info. 2021-12-21 23:29:35 +01:00
CONTRIBUTING.md Update URL in *.md, *.json 2017-03-12 03:04:59 +09:00
index.php Use HTTPS for the opensource.org MIT license URL 2017-06-11 00:23:22 +02:00
README.md Cake shell 'test' works - prints help info. 2021-12-21 23:29:35 +01:00

Fork of CakePHP 2 with support for PHP8

For original README content please check original repository: https://github.com/cakephp/cakephp/tree/2.x

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/kamilwylegala/cakephp2-php8"
        }
    ]
}

It means that composer will look at master branch of repository configured under repositories to resolve update of cakephp/cakephp package.

Changelog

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.

Debugging cake console in PHPStorm

Make sure PHP and XDebug extension are installed.

  1. Find cake.php in lib/Cake/Console.
  2. Click with right mouse button and choose "Debug".
  3. Go to debug configurations and edit this configuration.
  4. Add argument e.g. test.