This commit is contained in:
Fabien Potencier
2024-08-20 18:10:26 +02:00
parent f4bca4fa44
commit 302971f34e
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ final class ChainLoader implements LoaderInterface
public function getLoaders(): array
{
if (!\is_array($this->loaders)) {
$this->loaders = \iterator_to_array($this->loaders, false);
$this->loaders = iterator_to_array($this->loaders, false);
}
return $this->loaders;
+1 -1
View File
@@ -21,7 +21,7 @@ use Twig\TwigCallableInterface;
final class ReflectionCallable
{
private $reflector;
private $callable = null;
private $callable;
private $name;
public function __construct(
+1 -1
View File
@@ -252,7 +252,7 @@ class LexerTest extends TestCase
yield '{{ \'App\Test\' }} => AppTest' => [
'{{ \'App\\Test\' }}',
'AppTest',
"Since twig/twig 3.12: Character \"T\" at position 5 does not need to be escaped anymore.",
'Since twig/twig 3.12: Character "T" at position 5 does not need to be escaped anymore.',
];
yield '{{ "foo \\\' bar" }} => foo \' bar' => [
'{{ "foo \\\' bar" }}',