8000 [TwigBridge] Make LintCommand::$namePatterns private · symfony/symfony@6f8cf56 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6f8cf56

Browse files
[TwigBridge] Make LintCommand::$namePatterns private
1 parent 3c07197 commit 6f8cf56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Bridge/Twig/Command/LintCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#[AsCommand(name: 'lint:twig', description: 'Lint a Twig template and outputs encountered errors')]
4040
class LintCommand extends Command
4141
{
42-
protected string|array $namePatterns;
42+
private array $namePatterns;
4343
private Environment $twig;
4444
private string $format;
4545

@@ -48,7 +48,7 @@ public function __construct(Environment $twig, string|array $namePatterns = ['*.
4848
parent::__construct();
4949

5050
$this->twig = $twig;
51-
$this->namePatterns = $namePatterns;
51+
$this->namePatterns = (array) $namePatterns;
5252
}
5353

5454
protected function configure()

0 commit comments

Comments
 (0)
0