Skip to content

Commit 30fcbe1

Browse files
committed
Correct @throws annotation for setSelector()
This now may throw an `UnexpectedTokenException` rather than an `UnexpectedValueException`.
1 parent aa1c89d commit 30fcbe1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Property/Selector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public static function isValid(string $selector): bool
7777
* @param non-empty-string|non-empty-list<Component> $selector
7878
* Providing a string is deprecated in version 9.2 and will not work from v10.0
7979
*
80-
* @throws \UnexpectedValueException if the selector is not valid
80+
* @throws UnexpectedTokenException if the selector is not valid
8181
*/
8282
final public function __construct($selector)
8383
{
@@ -184,7 +184,7 @@ public function getSelector(): string
184184
/**
185185
* @param non-empty-string $selector
186186
*
187-
* @throws \UnexpectedValueException if the selector is not valid
187+
* @throws UnexpectedTokenException if the selector is not valid
188188
*
189189
* @deprecated in version 9.2, will be removed in v10.0. Use `setComponents()` instead.
190190
*/

0 commit comments

Comments
 (0)