This commit is contained in:
Nicolas Grekas 2018-10-02 18:27:16 +02:00
parent ab80f290fd
commit aea4a62e57
4 changed files with 3 additions and 4 deletions

View File

@ -1,6 +1,5 @@
<?php
use Symfony\Component\Console\Command\Command;
class Foo6Command extends Command

View File

@ -89,7 +89,7 @@ class Translator implements TranslatorInterface
}
}
return sprintf('concat(%s)', implode($parts, ', '));
return sprintf('concat(%s)', implode(', ', $parts));
}
/**

View File

@ -67,7 +67,7 @@ class MoFileDumper extends FileDumper
.$this->writeLong($offset[2] + $sourcesStart + $sourcesSize);
}
$output = implode(array_map(array($this, 'writeLong'), $header))
$output = implode('', array_map(array($this, 'writeLong'), $header))
.$sourceOffsets
.$targetOffsets
.$sources

View File

@ -234,7 +234,7 @@ class Inline
if (null !== $delimiters) {
$tmp = ltrim(substr($scalar, $i), ' ');
if ('' === $tmp) {
throw new ParseException(sprintf('Unexpected end of line, expected one of "%s".', implode($delimiters)));
throw new ParseException(sprintf('Unexpected end of line, expected one of "%s".', implode('', $delimiters)));
}
if (!\in_array($tmp[0], $delimiters)) {
throw new ParseException(sprintf('Unexpected characters (%s).', substr($scalar, $i)));