Optimize sprintf() calls for PHP 8.4

This commit is contained in:
Fabien Potencier
2024-06-21 08:16:55 +02:00
parent ca395348cf
commit b63bde3063
59 changed files with 239 additions and 238 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ class BlockReferenceNode extends Node implements NodeOutputInterface
{
$compiler
->addDebugInfo($this)
->write(sprintf("yield from \$this->unwrap()->yieldBlock('%s', \$context, \$blocks);\n", $this->getAttribute('name')))
->write(\sprintf("yield from \$this->unwrap()->yieldBlock('%s', \$context, \$blocks);\n", $this->getAttribute('name')))
;
}
}