d201312a0e
PHP 8 added support for named parameters however will throw an error when a named parameter, which does not exist, will be called/appears. In this case the code uses `array_filter(compact('subject))` to conveniently prepend `$subject` to the callback, if it's non-null. It's then combined with `$params` but mixing a hash wih a sequential array and then end result is `['subject' => …, ]` which then triggers this TypeError in PHP 8. The solution applies `array_values()` on above array as to remove the keys and then the error disappears. With this change, our internal test suite (2k tests) is green on both PHP8 and PHP7.4, aka this change is expecte to be backwards compatible. |
||
---|---|---|
app | ||
lib/Cake | ||
plugins | ||
vendors | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.htaccess | ||
.stickler.yml | ||
.travis.yml | ||
build.properties | ||
build.xml | ||
composer.json | ||
CONTRIBUTING.md | ||
index.php | ||
README.md |
CakePHP
CakePHP is a rapid development framework for PHP which uses commonly known design patterns like Active Record, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility.
Some Handy Links
CakePHP - The rapid development PHP framework
CookBook - THE CakePHP user documentation; start learning here!
API - A reference to CakePHP's classes
Plugins - A repository of extensions to the framework
The Bakery - Tips, tutorials and articles
Community Center - A source for everything community related
Training - Join a live session and get skilled with the framework
CakeFest - Don't miss our annual CakePHP conference
Cake Software Foundation - Promoting development related to CakePHP
Get Support!
#cakephp on irc.freenode.net - Come chat with us, we have cake
Google Group - Community mailing list and forum
GitHub Issues - Got issues? Please tell us!
Roadmaps - Want to contribute? Get involved!
Contributing
CONTRIBUTING.md - Quick pointers for contributing to the CakePHP project
CookBook "Contributing" Section (2.x) (3.x) - Version-specific details about contributing to the project