cakephp2-php8/README.md

49 lines
1.5 KiB
Markdown
Raw Normal View History

2021-02-24 22:54:42 +00:00
# Fork of CakePHP 2 with support for PHP8
2021-02-24 22:54:42 +00:00
For original README content please check original repository: https://github.com/cakephp/cakephp/tree/2.x
2021-02-24 22:54:42 +00:00
## Installation
2021-02-24 22:54:42 +00:00
This repository **is not** available in packagist, therefore your project's `composer.json` must be changed to point to custom repository.
2021-02-24 22:54:42 +00:00
Example configuration:
```
{
"require": {
"cakephp/cakephp": "dev-master as 2.10.24",
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/kamilwylegala/cakephp2-php8"
}
]
}
```
2021-02-24 22:54:42 +00:00
It means that composer will look at `master` branch of repository configured under `repositories` to resolve update of `cakephp/cakephp` package.
2021-02-24 22:54:42 +00:00
## Changelog
2021-12-20 22:32:50 +00:00
### 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
2021-02-24 22:54:42 +00:00
- 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`.