8000 - · symfony/symfony@9b069ad · GitHub
[go: up one dir, main page]

Skip to content

Commit 9b069ad

Browse files
committed
-
1 parent 1266eae commit 9b069ad

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/Symfony/Component/Notifier/Exception/MultipleExclusiveOptionsUsedException.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,11 @@
1616
*/
1717
class MultipleExclusiveOptionsUsedException extends InvalidArgumentException
1818
{
19-
/**
20-
* @param string[] $usedExclusiveOptions
21-
* @param string[]|null $exclusiveOptions
22-
*/
23-
public function __construct(array $usedExclusiveOptions, array $exclusiveOptions = null, \Throwable $previous = null)
19+
public function __construct(array $usedOptions, array $availableOptions = null, \Throwable $previous = null)
2420
{
25-
$message = sprintf('Multiple exclusive options have been used "%s".', implode('", "', $usedExclusiveOptions));
26-
if (null !== $exclusiveOptions) {
27-
$message .= sprintf(' Only one of %s can be used.', implode('", "', $exclusiveOptions));
21+
$message = sprintf('Multiple exclusive options have been used "%s".', implode('", "', $usedOptions));
22+
if (null !== $availableOptions) {
23+
$message .= sprintf(' Only one of %s can be used.', implode('", "', $availableOptions));
2824
}
2925

3026
parent::__construct($message, 0, $previous);

0 commit comments

Comments
 (0)
0