From 36ed7bd48c26f90e1f9e49b83931ada037371609 Mon Sep 17 00:00:00 2001 From: Jonathan Sacksick Date: Fri, 3 Mar 2023 11:19:13 +0200 Subject: [PATCH] NumberFormatter::parse() can return a boolean as well. --- src/Formatter/NumberFormatter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Formatter/NumberFormatter.php b/src/Formatter/NumberFormatter.php index 989ce342..2ef2b282 100644 --- a/src/Formatter/NumberFormatter.php +++ b/src/Formatter/NumberFormatter.php @@ -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);