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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy