Skip to content

Commit 15b6ca7

Browse files
[TwigBridge] Make LintCommand::$namePatterns private
1 parent 5c13b0d commit 15b6ca7

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

Command/LintCommand.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,13 @@
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;
43-
private Environment $twig;
4442
private string $format;
4543

46-
public function __construct(Environment $twig, string|array $namePatterns = ['*.twig'])
47-
{
44+
public function __construct(
45+
private Environment $twig,
46+
private array $namePatterns = ['*.twig'],
47+
) {
4848
parent::__construct();
49-
50-
$this->twig = $twig;
51-
$this->namePatterns = $namePatterns;
5249
}
5350

5451
protected function configure()

0 commit comments

Comments
 (0)