PhileCMS / Phile

A flat file CMS with a swappable parser and template engine.
https://philecms.github.io/
Other
255 stars 48 forks source link

PHP 7.4+ deprecates array_key_exists() on objects #336

Closed CasualRascal closed 4 years ago

CasualRascal commented 4 years ago

With PHP version 7.4 and up, the following error appears and everything breaks

Whoops\Exception\ErrorException thrown with message "array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead"
Schlaefer commented 4 years ago

Thanks for reporting. :+1:

For anybody running into this issue: removing the whole Registry::offsetExists method in lib/Core/Phile/Registry.php should solve it.

I'll try to fix that (and other minor issues) in a bugfix release in the upcoming weeks.