Skip to content

Commit

Permalink
Fixing PHPSTAN issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
shinde-rahul committed Nov 1, 2021
1 parent ce49f73 commit 3689b03
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -14,7 +14,6 @@
use Mautic\LeadBundle\Helper\FormFieldHelper;
use Mautic\LeadBundle\Model\FieldModel;
use Mautic\LeadBundle\Model\LeadModel;
use Mautic\LeadBundle\Segment\OperatorOptions;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
Expand Down Expand Up @@ -180,7 +179,7 @@ public function buildForm(FormBuilderInterface $builder, array $options)

// If user selects the operator as include or exclude then the
// `value` field should be accepting multiple values.
if (in_array($operator, [OperatorOptions::IN, OperatorOptions::NOT_IN])) {
if (in_array($operator, ['in', '!in'])) {
$options['multiple'] = true;
}

Expand Down

0 comments on commit 3689b03

Please sign in to comment.