CS: Remove invisible chars
This commit is contained in:
parent
11a06ccced
commit
0f623f4220
@ -120,7 +120,7 @@ class PercentToLocalizedStringTransformer implements DataTransformerInterface
|
||||
|
||||
$formatter = $this->getNumberFormatter();
|
||||
// replace normal spaces so that the formatter can read them
|
||||
$value = $formatter->parse(str_replace(' ', ' ', $value));
|
||||
$value = $formatter->parse(str_replace(' ', "\xc2\xa0", $value));
|
||||
|
||||
if (intl_is_failure($formatter->getErrorCode())) {
|
||||
throw new TransformationFailedException($formatter->getErrorMessage());
|
||||
|
@ -59,7 +59,7 @@ class ValidatorExtension extends AbstractExtension
|
||||
|
||||
public function loadTypeGuesser()
|
||||
{
|
||||
// 2.5 API
|
||||
// 2.5 API
|
||||
if ($this->validator instanceof ValidatorInterface) {
|
||||
return new ValidatorTypeGuesser($this->validator);
|
||||
}
|
||||
|
Reference in New Issue
Block a user