mmikkel / CacheFlag-Craft3

Cold template caches that can be flagged and automatically cleared.
MIT License
17 stars 0 forks source link

Craft 4 - PHP Compile Error #19

Closed rungta closed 1 year ago

rungta commented 1 year ago

Getting an error when trying to use the Yii debug toolbar in Craft 4

https://github.com/mmikkel/CacheFlag-Craft3/blob/3b17b1232c4b11e8edf35088ae06421339b870d9/src/controllers/CachesController.php#L20

yii\base\ErrorException: Type of mmikkel\cacheflag\controllers\CachesController::$allowAnonymous must be array|int|bool (as in class craft\web\Controller) in ../vendor/mmikkel/cache-flag/src/controllers/CachesController.php:0
Stack trace:
#0 [internal function]: yii\base\ErrorHandler->handleFatalError()
#1 {main}
image
mmikkel commented 1 year ago

Thanks for reporting that! Just released Cache Flag 1.3.3 with a fix for this issue.