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 b009a44 commit c39e2b9Copy full SHA for c39e2b9
compiler/src/Console/PrepareCommand.php
@@ -166,6 +166,8 @@ private function buildPreloadScript(): void
166
$template = <<<'php'
167
<?php declare(strict_types = 1);
168
169
+use PhpParser\Node;
170
+
171
%s
172
php;
173
$finder = Finder::create();
@@ -203,6 +205,8 @@ private function buildPreloadScript(): void
203
205
$output .= 'require_once __DIR__ . ' . var_export($path, true) . ';' . "\n";
204
206
}
207
208
+ $output .= 'class_alias(Node\\ArrayItem::class, Node\\Expr\\ArrayItem::class);' . "\n";
209
210
file_put_contents($preloadScript, sprintf($template, $output));
211
212
0 commit comments