Define beforeAddAsset properties as references in docs. (#5269)

This commit is contained in:
Raja Khoury 2020-09-08 21:18:51 -05:00 committed by GitHub
parent 67cabdcb28
commit 561815cac1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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;
* });
*