Skip to content

Commit

Permalink
NumberFormatter::parse() can return a boolean as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsacksick committed Mar 3, 2023
1 parent 8096b63 commit 36ed7bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Formatter/NumberFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function format(string $number, array $options = []): string
/**
* {@inheritdoc}
*/
public function parse(string $number, array $options = []): string
public function parse(string $number, array $options = []): string|bool
{
$this->validateOptions($options);
$options = array_replace($this->defaultOptions, $options);
Expand Down

0 comments on commit 36ed7bd

Please sign in to comment.