We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c13b0d commit 15b6ca7Copy full SHA for 15b6ca7
Command/LintCommand.php
@@ -39,16 +39,13 @@
39
#[AsCommand(name: 'lint:twig', description: 'Lint a Twig template and outputs encountered errors')]
40
class LintCommand extends Command
41
{
42
- protected string|array $namePatterns;
43
- private Environment $twig;
44
private string $format;
45
46
- public function __construct(Environment $twig, string|array $namePatterns = ['*.twig'])
47
- {
+ public function __construct(
+ private Environment $twig,
+ private array $namePatterns = ['*.twig'],
+ ) {
48
parent::__construct();
49
-
50
- $this->twig = $twig;
51
- $this->namePatterns = $namePatterns;
52
}
53
54
protected function configure()
0 commit comments