diff --git a/modules/system/traits/AssetMaker.php b/modules/system/traits/AssetMaker.php index 4918872e7..94fc41e7f 100644 --- a/modules/system/traits/AssetMaker.php +++ b/modules/system/traits/AssetMaker.php @@ -208,7 +208,7 @@ trait AssetMaker * * Example usage: * - * Event::listen('system.assets.beforeAddAsset', function (string $type, string $path, array $attributes) { + * Event::listen('system.assets.beforeAddAsset', function (string &$type, string &$path, array &$attributes) { * if (in_array($path, $blockedAssets)) { * return false; * } @@ -216,7 +216,7 @@ trait AssetMaker * * Or * - * $this->bindEvent('assets.beforeAddAsset', function (string $type, string $path, array $attributes) { + * $this->bindEvent('assets.beforeAddAsset', function (string &$type, string &$path, array &$attributes) { * $attributes['special_cdn_flag'] = false; * }); *