Skip to content

Commit a92b47d

Browse files
committed
Added symfony2/intl fixed phpspec extensions
1 parent a24f4c9 commit a92b47d

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

composer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
}
1515
],
1616
"require": {
17-
"php": ">=5.3.0"
17+
"php": ">=5.3.0",
18+
"symfony/intl": "~2.5"
1819
},
1920
"require-dev": {
2021
"phpspec/phpspec": "2.0.*",

phpspec.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
extensions:
2-
- Coduo\PhpSpec\DataProviderExtension
2+
- Coduo\PhpSpec\DataProvider\DataProviderExtension

src/Coduo/ToString/String.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ private function castBooleanToString()
6767
*/
6868
private function castDoubleToString()
6969
{
70-
$formatter = new \NumberFormatter($this->locale, \NumberFormatter::PATTERN_DECIMAL);
70+
$formatter = new \NumberFormatter($this->locale, \NumberFormatter::DEFAULT_STYLE);
7171
return $formatter->format($this->value);
7272
}
7373
}

0 commit comments

Comments
 (0)