mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-17 04:46:49 +00:00
Fix CS
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -21,7 +21,7 @@ use Twig\TwigCallableInterface;
|
||||
final class ReflectionCallable
|
||||
{
|
||||
private $reflector;
|
||||
private $callable = null;
|
||||
private $callable;
|
||||
private $name;
|
||||
|
||||
public function __construct(
|
||||
|
||||
+1
-1
@@ -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" }}',
|
||||
|
||||
Reference in New Issue
Block a user