It looks like maybe the types on GitDeployer::updateFile are a little too strong. $value has the ability to be null when using the FileStorage driver. It looks like updateFile would handle null values, but I'm getting a type error from PHP.
2024-05-14 22:40:15 [console.ERROR] [TypeError] putyourlightson\blitz\drivers\deployers\GitDeployer::updateFile(): Argument #1 ($value) must be of type string, null given, called in file/path/vendor/putyourlightson/craft-blitz/src/drivers/deployers/GitDeployer.php on line 147
{
"trace": [
"#0 file/path/vendor/putyourlightson/craft-blitz/src/drivers/deployers/GitDeployer.php(147): putyourlightson\\blitz\\drivers\\deployers\\GitDeployer->updateFile()",
"#1 file/path/vendor/putyourlightson/craft-blitz/src/drivers/deployers/BaseDeployer.php(52): putyourlightson\\blitz\\drivers\\deployers\\GitDeployer->deployUrisWithProgress()",
"#2 file/path/vendor/putyourlightson/craft-blitz/src/console/controllers/CacheController.php(587): putyourlightson\\blitz\\drivers\\deployers\\BaseDeployer->deployUris()",
"#3 file/path/vendor/putyourlightson/craft-blitz/src/console/controllers/CacheController.php(309): putyourlightson\\blitz\\console\\controllers\\CacheController->deploy()",
"#4 [internal function]: putyourlightson\\blitz\\console\\controllers\\CacheController->actionRefresh()",
"#5 file/path/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array()",
"#6 file/path/vendor/yiisoft/yii2/base/Controller.php(178): yii\\base\\InlineAction->runWithParams()",
"#7 file/path/vendor/yiisoft/yii2/console/Controller.php(180): yii\\base\\Controller->runAction()",
"#8 file/path/vendor/yiisoft/yii2/base/Module.php(552): yii\\console\\Controller->runAction()",
"#9 file/path/vendor/yiisoft/yii2/console/Application.php(180): yii\\base\\Module->runAction()",
"#10 file/path/vendor/craftcms/cms/src/console/Application.php(91): yii\\console\\Application->runAction()",
"#11 file/path/vendor/yiisoft/yii2/console/Application.php(147): craft\\console\\Application->runAction()",
"#12 file/path/vendor/craftcms/cms/src/console/Application.php(122): yii\\console\\Application->handleRequest()",
"#13 file/path/vendor/yiisoft/yii2/base/Application.php(384): craft\\console\\Application->handleRequest()",
"#14 file/path/craft(13): yii\\base\\Application->run()",
"#15 {main}"
],
"memory": 30980064,
"exception": "[object] (TypeError(code: 0): putyourlightson\\blitz\\drivers\\deployers\\GitDeployer::updateFile(): Argument #1 ($value) must be of type string, null given, called in file/path/vendor/putyourlightson/craft-blitz/src/drivers/deployers/GitDeployer.php on line 147 at file/path/vendor/putyourlightson/craft-blitz/src/drivers/deployers/GitDeployer.php:340)"
}
Bug Report
It looks like maybe the types on
GitDeployer::updateFile
are a little too strong.$value
has the ability to benull
when using theFileStorage
driver. It looks likeupdateFile
would handlenull
values, but I'm getting a type error from PHP.Diagnostics Report
Application Info
Installed Plugins
Loaded Modules
Blitz Plugin Settings
Recommendations
Site Tracking