Skip to content

Commit 36ed7bd

Browse files
committed
NumberFormatter::parse() can return a boolean as well.
1 parent 8096b63 commit 36ed7bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Formatter/NumberFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function format(string $number, array $options = []): string
8888
/**
8989
* {@inheritdoc}
9090
*/
91-
public function parse(string $number, array $options = []): string
91+
public function parse(string $number, array $options = []): string|bool
9292
{
9393
$this->validateOptions($options);
9494
$options = array_replace($this->defaultOptions, $options);

0 commit comments

Comments
 (0)