Skip to content
Snippets Groups Projects
Commit 755bd5ef authored by Vadim Justus's avatar Vadim Justus
Browse files

Fix strict_type issue

parent a05245c9
No related branches found
No related tags found
1 merge request!27Added backend reset button resolve #9
...@@ -122,7 +122,7 @@ class SaveButton extends GenericButton implements ButtonProviderInterface ...@@ -122,7 +122,7 @@ class SaveButton extends GenericButton implements ButtonProviderInterface
] ]
]; ];
if ($this->hasDefaultConfiguration->get($this->getBlockId())) { if ($this->hasDefaultConfiguration->get((int)$this->getBlockId())) {
$options = array_merge($options, [[ $options = array_merge($options, [[
'is_hard' => 'apply_default', 'is_hard' => 'apply_default',
'label' => __('Reset to Default & Save'), 'label' => __('Reset to Default & Save'),
......
...@@ -121,7 +121,7 @@ class SaveButton extends GenericButton implements ButtonProviderInterface ...@@ -121,7 +121,7 @@ class SaveButton extends GenericButton implements ButtonProviderInterface
] ]
]; ];
if ($this->hasDefaultConfiguration->get($this->getPageId())) { if ($this->hasDefaultConfiguration->get((int)$this->getPageId())) {
$options = array_merge($options, [[ $options = array_merge($options, [[
'is_hard' => 'apply_default', 'is_hard' => 'apply_default',
'label' => __('Reset to Default & Save'), 'label' => __('Reset to Default & Save'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment