Skip to content

Commit

Permalink
Added symfony2/intl fixed phpspec extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
norberttech committed Oct 18, 2014
1 parent a24f4c9 commit a92b47d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
}
],
"require": {
"php": ">=5.3.0"
"php": ">=5.3.0",
"symfony/intl": "~2.5"
},
"require-dev": {
"phpspec/phpspec": "2.0.*",
Expand Down
2 changes: 1 addition & 1 deletion phpspec.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
extensions:
- Coduo\PhpSpec\DataProviderExtension
- Coduo\PhpSpec\DataProvider\DataProviderExtension
2 changes: 1 addition & 1 deletion src/Coduo/ToString/String.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ private function castBooleanToString()
*/
private function castDoubleToString()
{
$formatter = new \NumberFormatter($this->locale, \NumberFormatter::PATTERN_DECIMAL);
$formatter = new \NumberFormatter($this->locale, \NumberFormatter::DEFAULT_STYLE);
return $formatter->format($this->value);
}
}

0 comments on commit a92b47d

Please sign in to comment.