|
@@ -384,7 +384,7 @@ class StubNumberFormatterTest extends LocaleTestCase
|
|
|
{
|
|
|
$formatter = $this->getStubFormatterWithDecimalStyle();
|
|
|
|
|
|
- if (!is_null($fractionDigits)) {
|
|
|
+ if (null !== $fractionDigits) {
|
|
|
$attributeRet = $formatter->setAttribute(StubNumberFormatter::FRACTION_DIGITS, $fractionDigits);
|
|
|
}
|
|
|
|
|
@@ -405,7 +405,7 @@ class StubNumberFormatterTest extends LocaleTestCase
|
|
|
$this->skipIfIntlExtensionIsNotLoaded();
|
|
|
$formatter = $this->getIntlFormatterWithDecimalStyle();
|
|
|
|
|
|
- if (!is_null($fractionDigits)) {
|
|
|
+ if (null !== $fractionDigits) {
|
|
|
$attributeRet = $formatter->setAttribute(\NumberFormatter::FRACTION_DIGITS, $fractionDigits);
|
|
|
}
|
|
|
|
|
@@ -437,7 +437,7 @@ class StubNumberFormatterTest extends LocaleTestCase
|
|
|
{
|
|
|
$formatter = $this->getStubFormatterWithDecimalStyle();
|
|
|
|
|
|
- if (!is_null($groupingUsed)) {
|
|
|
+ if (null !== $groupingUsed) {
|
|
|
$attributeRet = $formatter->setAttribute(StubNumberFormatter::GROUPING_USED, $groupingUsed);
|
|
|
}
|
|
|
|
|
@@ -458,7 +458,7 @@ class StubNumberFormatterTest extends LocaleTestCase
|
|
|
$this->skipIfIntlExtensionIsNotLoaded();
|
|
|
$formatter = $this->getIntlFormatterWithDecimalStyle();
|
|
|
|
|
|
- if (!is_null($groupingUsed)) {
|
|
|
+ if (null !== $groupingUsed) {
|
|
|
$attributeRet = $formatter->setAttribute(\NumberFormatter::GROUPING_USED, $groupingUsed);
|
|
|
}
|
|
|
|