Skip to content

Commit

Permalink
returned the order of the arguments and added default fallbacks for them
Browse files Browse the repository at this point in the history
  • Loading branch information
AzizKHAN030 committed May 6, 2022
1 parent 16564f3 commit 0e1dd14
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Model/Template/Filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ public function __construct(
CssInliner $cssInliner,
\Magento\Widget\Model\ResourceModel\Widget $widgetResource,
Widget $widget,
$variables,
array $directiveProcessors,
array $availableFilters,
array $widgetUnescapedParams,
array $widgetCustomParamsHandlers,
$variables = [],
array $directiveProcessors = []
array $widgetCustomParamsHandlers
) {
parent::__construct(
$string,
Expand All @@ -99,7 +99,7 @@ public function __construct(
$widgetResource,
$widget,
$variables ?? [],
$directiveProcessors
$directiveProcessors ?? []
);

$this->availableFilters = $availableFilters;
Expand Down

0 comments on commit 0e1dd14

Please sign in to comment.