Skip to content

Commit ee97c71

Browse files
committed
[Intl] Fix call to ReflectionProperty::getValue() for static properties.
1 parent aac03c2 commit ee97c71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/NumberFormatter/AbstractNumberFormatterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ public function testGetSymbol()
602602

603603
$r = new \ReflectionProperty('Symfony\Component\Intl\NumberFormatter\NumberFormatter', 'enSymbols');
604604
$r->setAccessible(true);
605-
$expected = $r->getValue('Symfony\Component\Intl\NumberFormatter\NumberFormatter');
605+
$expected = $r->getValue();
606606

607607
for ($i = 0; $i <= 17; ++$i) {
608608
$this->assertSame($expected[1][$i], $decimalFormatter->getSymbol($i));
@@ -619,7 +619,7 @@ public function testGetTextAttribute()
619619

620620
$r = new \ReflectionProperty('Symfony\Component\Intl\NumberFormatter\NumberFormatter', 'enTextAttributes');
621621
$r->setAccessible(true);
622-
$expected = $r->getValue('Symfony\Component\Intl\NumberFormatter\NumberFormatter');
622+
$expected = $r->getValue();
623623

624624
for ($i = 0; $i <= 5; ++$i) {
625625
$this->assertSame($expected[1][$i], $decimalFormatter->getTextAttribute($i));

0 commit comments

Comments
 (0)