public function transchoice($message, $count, array $arguments = [], $domain = null, $locale = null)
    {
        if (null === $this->translator) {
            return strtr($message, $arguments);
        }

        return $this->translator->trans($message, array_merge(['%count%' => $count], $arguments), $domain, $locale);
    }
public function transchoice($message, $count, array $arguments = [], $domain = null, $locale = null)
    {
        if (null === $this->translator) {
            return strtr($message, $arguments);
        }

        return $this->translator->trans($message, array_merge(['%count%' => $count], $arguments), $domain, $locale);
    }
public function transchoice ( $ message , $ count , array $ arguments = [ ] , $ domain = null , $ locale = null ) { if ( null === $ this -> translator ) { return strtr ( $ message , $ arguments ) ; } return $ this -> translator -> trans ( $ message , array_merge ( [ '%count%' => $ count ] , $ arguments ) , $ domain , $ locale ) ; }
Remove this filter when the Symfony's requirement is equal or greater than 4.2
and use the built-in trans filter instead with a %count% parameter.
Remove this filter when the Symfony s requirement is equal or greater than 4 . 2 and use the built - in trans filter instead with a %count% parameter .