@@ -201,9 +201,9 @@ abstract class NumberFormatter
201
201
* @see https://php.net/round
202
202
*/
203
203
private static $ phpRoundingMap = [
204
- self ::ROUND_HALFDOWN => \ PHP_ROUND_HALF_DOWN ,
205
- self ::ROUND_HALFEVEN => \ PHP_ROUND_HALF_EVEN ,
206
- self ::ROUND_HALFUP => \ PHP_ROUND_HALF_UP ,
204
+ self ::ROUND_HALFDOWN => PHP_ROUND_HALF_DOWN ,
205
+ self ::ROUND_HALFEVEN => PHP_ROUND_HALF_EVEN ,
206
+ self ::ROUND_HALFUP => PHP_ROUND_HALF_UP ,
207
207
];
208
208
209
209
/**
@@ -354,7 +354,7 @@ public function format($value, int $type = self::TYPE_DEFAULT)
354
354
{
355
355
// The original NumberFormatter does not support this format type
356
356
if (self ::TYPE_CURRENCY === $ type ) {
357
- trigger_error (__METHOD__ .'(): Unsupported format type ' .$ type , \ E_USER_WARNING );
357
+ trigger_error (__METHOD__ .'(): Unsupported format type ' .$ type , E_USER_WARNING );
358
358
359
359
return false ;
360
360
}
@@ -508,7 +508,7 @@ public function parseCurrency(string $value, string &$currency, int &$position =
508
508
public function parse (string $ value , int $ type = self ::TYPE_DOUBLE , int &$ position = 0 )
509
509
{
510
510
if (self ::TYPE_DEFAULT === $ type || self ::TYPE_CURRENCY === $ type ) {
511
- trigger_error (__METHOD__ .'(): Unsupported format type ' .$ type , \ E_USER_WARNING );
511
+ trigger_error (__METHOD__ .'(): Unsupported format type ' .$ type , E_USER_WARNING );
512
512
513
513
return false ;
514
514
}
0 commit comments