We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3e9511 commit dd69d4dCopy full SHA for dd69d4d
src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/MicrosoftTeamsOptions.php
@@ -140,7 +140,7 @@ public function expectedActor(string $actor): self
140
141
private function validateNumberOfActions(): void
142
{
143
- if (\array_key_exists('potentialAction', $this->options) && self::MAX_ACTIONS === \count($this->options['potentialAction'])) {
+ if (\array_key_exists('potentialAction', $this->options) && \count($this->options['potentialAction']) >= self::MAX_ACTIONS) {
144
throw new InvalidArgumentException(sprintf('MessageCard maximum number of "potentialAction" has been reached (%d).', self::MAX_ACTIONS));
145
}
146
0 commit comments