Skip to content

Commit

Permalink
Changes the $helpers access modifier (#32)
Browse files Browse the repository at this point in the history
The $helpers array should be public and not protected, as per the CakePHP's official docs:
https://book.cakephp.org/3/en/views/helpers.html#including-other-helpers
  • Loading branch information
Andream98 authored Sep 20, 2021
1 parent 8e88c23 commit 46270b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/View/Helper/AssetMixHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class AssetMixHelper extends Helper
*
* @var array<string>
*/
protected $helpers = ['Html', 'Url'];
public $helpers = ['Html', 'Url'];

/**
* Creates a link element for CSS stylesheets with versioned asset.
Expand Down

0 comments on commit 46270b1

Please sign in to comment.