FFF 3.8.0, PHP 8.1 deprecated
olaulau opened this issue · comments
laulau commented
Hi ;
works correctly on PHP 8.1
here is my error stack :
Internal Server Error
str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
[<project_root>/vendor/bcosca/fatfree-core/base.php:2375] Base->error()
[<project_root>/vendor/bcosca/fatfree-core/db/sql.php:128] str_replace()
[<project_root>/vendor/bcosca/fatfree-core/db/sql/mapper.php:101] DB\SQL->value()
[<project_root>/vendor/bcosca/fatfree-core/magic.php:76] DB\SQL\Mapper->set()
[<project_root>/vendor/bcosca/fatfree-core/magic.php:122] Magic->offsetset()
[<project_root>/vendor/bcosca/fatfree-core/base.php:885] Magic->__set()
[<project_root>/vendor/bcosca/fatfree-core/base.php:893] Base->recursive()
[<project_root>/vendor/bcosca/fatfree-core/base.php:2891] Base->recursive()
[<project_root>/vendor/bcosca/fatfree-core/base.php:2928] View->esc()
[<project_root>/vendor/bcosca/fatfree-core/base.php:2962] View->sandbox()
[<project_root>/php/controller/Ctrl.php:44] View->render()
[<project_root>/php/controller/ListCtrl.php:76] controller\Ctrl::renderPage()
[<project_root>/vendor/bcosca/fatfree-core/base.php:1984] controller\ListCtrl::operationEditGET()
[<project_root>/vendor/bcosca/fatfree-core/base.php:1783] Base->call()
[<project_root>/index.php:8] Base->run()
I can provide more details on involved code if needed.
best regards ;
Christian Knuth commented
Please check latest commit f3-factory/fatfree-core@4e46eba if that solves your issue. thank you.
laulau commented
seems to solve the issue, thanks.
laulau commented
any idea of when it will be released ?
do you have a simple tip to use this commit via composer ?
Christian Knuth commented
@olaulau You can pin a commit as another version like this:
"bcosca/fatfree-core": "dev-master#4e46ebadecd2fe4aa0f05658858db51b7dccd06c as 3.8.2",