Skip to content

Commit

Permalink
Merge pull request #4 from e-spin/hotfix/1.0.4
Browse files Browse the repository at this point in the history
Fix error combining MP_Forms
  • Loading branch information
e-spin authored Aug 31, 2023
2 parents b147b5a + bb70d11 commit 8815bb3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions src/Forms/FormCheckBox.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
/**
* This file is part of e-spin/form-scr-default-bundle.
*
* Copyright (c) 2020 e-spin
* Copyright (c) 2020-2023 e-spin
*
* @package e-spin/form-scr-default-bundle
* @author Ingolf Steinhardt <[email protected]>
* @author Kamil Kuzminski <[email protected]>
* @copyright 2020 e-spin
* @copyright 2020-2023 e-spin
* @license LGPL-3.0-or-later
*/

Expand All @@ -19,14 +19,14 @@
class FormCheckBox extends \Contao\FormCheckBox
{
/**
* Add specific attributes
* Add specific attributes.
*
* @param string
* @param mixed
*/
public function __set($strKey, $varValue)
{
if ($strKey == 'value') {
if ($strKey === 'value' && !\is_array($varValue)) {
$varValue = $this->replaceInsertTags($varValue);
}

Expand Down
8 changes: 4 additions & 4 deletions src/Forms/FormRadioButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
/**
* This file is part of e-spin/form-scr-default-bundle.
*
* Copyright (c) 2020 e-spin
* Copyright (c) 2020-2023 e-spin
*
* @package e-spin/form-scr-default-bundle
* @author Ingolf Steinhardt <[email protected]>
* @author Kamil Kuzminski <[email protected]>
* @copyright 2020 e-spin
* @copyright 2020-2023 e-spin
* @license LGPL-3.0-or-later
*/

Expand All @@ -19,14 +19,14 @@
class FormRadioButton extends \Contao\FormRadioButton
{
/**
* Add specific attributes
* Add specific attributes.
*
* @param string
* @param mixed
*/
public function __set($strKey, $varValue)
{
if ($strKey == 'value') {
if ($strKey === 'value' && !\is_array($varValue)) {
$varValue = $this->replaceInsertTags($varValue);
}

Expand Down
8 changes: 4 additions & 4 deletions src/Forms/FormSelectMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
/**
* This file is part of e-spin/form-scr-default-bundle.
*
* Copyright (c) 2020 e-spin
* Copyright (c) 2020-2023 e-spin
*
* @package e-spin/form-scr-default-bundle
* @author Ingolf Steinhardt <[email protected]>
* @author Kamil Kuzminski <[email protected]>
* @copyright 2020 e-spin
* @copyright 2020-2023 e-spin
* @license LGPL-3.0-or-later
*/

Expand All @@ -19,14 +19,14 @@
class FormSelectMenu extends \Contao\FormSelectMenu
{
/**
* Add specific attributes
* Add specific attributes.
*
* @param string
* @param mixed
*/
public function __set($strKey, $varValue)
{
if ($strKey == 'value') {
if ($strKey === 'value' && !\is_array($varValue)) {
$varValue = $this->replaceInsertTags($varValue);
}

Expand Down

0 comments on commit 8815bb3

Please sign in to comment.