From a843c61da65b69814c2254688c69d229505b9ae1 Mon Sep 17 00:00:00 2001 From: eecjimmy Date: Wed, 16 Mar 2022 15:20:03 +0800 Subject: [PATCH] Set the default to an array (#19306) --- framework/base/ActionFilter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/base/ActionFilter.php b/framework/base/ActionFilter.php index 10d745a3b2e..b39c75826d1 100644 --- a/framework/base/ActionFilter.php +++ b/framework/base/ActionFilter.php @@ -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