8000 Fix: Use + · symfony/symfony@96d3019 · GitHub
[go: up one dir, main page]

Skip to content

Commit 96d3019

Browse files
committed
Fix: Use +
1 parent 0075dce commit 96d3019

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/Input/DateInput.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ public function includeTime(bool $includeTime): self
3030

3131
public function toArray(): array
3232
{
33-
$this->options['@type'] = 'DateInput';
34-
35-
return parent::toArray() + $this->options;
33+
return parent::toArray() + $this->options + ['@type' => 'DateInput'];
3634
}
3735
}

src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/Input/MultiChoiceInput.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ public function style(string $style): self
5555

5656
public function toArray(): array
5757
{
58-
$this->options['@type'] = 'MultichoiceInput';
59-
60-
return parent::toArray() + $this->options;
58+
return parent::toArray() + $this->options + ['@type' => 'MultichoiceInput'];
6159
}
6260
}

src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/Input/TextInput.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ public function maxLength(int $maxLength): self
3737

3838
public function toArray(): array
3939
{
40-
$this->options['@type'] = 'TextInput';
41-
42-
return parent::toArray() + $this->options;
40+
return parent::toArray() + $this->options + ['@type' => 'TextInput'];
4341
}
4442
}

0 commit comments

Comments
 (0)
0