Cake5: Typed static property Muffin\Footprint\FootprintPlugin::$listener must not be accessed before initialization
LordSimal opened this issue · 0 comments
LordSimal commented
I get the following error after upgrading to my App to current Cake5 RC1:
Typed static property Muffin\Footprint\FootprintPlugin::$listener must not be accessed before initialization
ROOT/vendor/muffin/footprint/src/FootprintPlugin.php at line 46
Proposed solution
change
protected static ?FootprintListener $listener;
to
protected static ?FootprintListener $listener = null;