Skip to content

Commit

Permalink
Merge branch '5.1' into 5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus committed Oct 28, 2020
2 parents 4ede087 + 1659352 commit 8daf9ed
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Command/DebugCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ private function displayPathsText(SymfonyStyle $io, string $name)
$shortnames[] = str_replace('\\', '/', $file->getRelativePathname());
}

list($namespace, $shortname) = $this->parseTemplateName($name);
[$namespace, $shortname] = $this->parseTemplateName($name);
$alternatives = $this->findAlternatives($shortname, $shortnames);
if (FilesystemLoader::MAIN_NAMESPACE !== $namespace) {
$alternatives = array_map(function ($shortname) use ($namespace) {
Expand Down Expand Up @@ -452,7 +452,7 @@ private function error(SymfonyStyle $io, string $message, array $alternatives =

private function findTemplateFiles(string $name): array
{
list($namespace, $shortname) = $this->parseTemplateName($name);
[$namespace, $shortname] = $this->parseTemplateName($name);

$files = [];
foreach ($this->getFilesystemLoaders() as $loader) {
Expand Down
2 changes: 1 addition & 1 deletion Extension/CodeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function abbrClass(string $class): string
public function abbrMethod(string $method): string
{
if (false !== strpos($method, '::')) {
list($class, $method) = explode('::', $method, 2);
[$class, $method] = explode('::', $method, 2);
$result = sprintf('%s::%s()', $this->abbrClass($class), $method);
} elseif ('Closure' === $method) {
$result = sprintf('<abbr title="%s">%1$s</abbr>', $method);
Expand Down
2 changes: 1 addition & 1 deletion Node/TransNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function compile(Compiler $compiler): void
$defaults = $this->getNode('vars');
$vars = null;
}
list($msg, $defaults) = $this->compileString($this->getNode('body'), $defaults, (bool) $vars);
[$msg, $defaults] = $this->compileString($this->getNode('body'), $defaults, (bool) $vars);

$compiler
->write('echo $this->env->getExtension(\'Symfony\Bridge\Twig\Extension\TranslationExtension\')->trans(')
Expand Down

0 comments on commit 8daf9ed

Please sign in to comment.