File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ public function entryExists(string $entryName): bool
52
52
return isset ($ entriesData ['entrypoints ' ][$ entryName ]);
53
53
}
54
54
55
+ /**
56
+ * @psalm-return array<string>
57
+ */
55
58
private function getEntryFiles (string $ entryName , string $ key ): array
56
59
{
57
60
$ this ->validateEntryName ($ entryName );
Original file line number Diff line number Diff line change 15
15
16
16
class TagRenderer implements TagRendererInterface
17
17
{
18
- private array $ defaultAttributes = [];
19
- private array $ defaultScriptAttributes = [
20
- 'type ' => 'application/javascript ' ,
21
- ];
22
- private array $ defaultLinkAttributes = [];
23
-
24
- public function __construct (private readonly EntrypointLookupInterface $ entrypointLookup )
25
- {
18
+ public function __construct (
19
+ private readonly EntrypointLookupInterface $ entrypointLookup ,
20
+ private readonly array $ defaultAttributes = [],
21
+ private readonly array $ defaultScriptAttributes = ['type ' => 'application/javascript ' ],
22
+ private readonly array $ defaultLinkAttributes = []
23
+ ) {
26
24
}
27
25
28
26
public function renderWebpackScriptTags (string $ entryName , array $ extraAttributes = []): string
You can’t perform that action at this time.
0 commit comments