From 561815cac14dd079c70d89588cc7175e8839e6ef Mon Sep 17 00:00:00 2001 From: Raja Khoury Date: Tue, 8 Sep 2020 21:18:51 -0500 Subject: [PATCH] Define beforeAddAsset properties as references in docs. (#5269) --- modules/system/traits/AssetMaker.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; * }); *