Skip to content

Commit

Permalink
Set the default to an array (#19306)
Browse files Browse the repository at this point in the history
  • Loading branch information
eecjimmy committed Mar 16, 2022
1 parent 3a13a31 commit a843c61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/base/ActionFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ActionFilter extends Behavior
*
* @see except
*/
public $only;
public $only = [];
/**
* @var array list of action IDs that this filter should not apply to.
* @see only
Expand Down

0 comments on commit a843c61

Please sign in to comment.