You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$kernel = new \App\Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
98
98
return new \Symfony\Bundle\FrameworkBundle\Console\Application($kernel);
99
99
```
100
+
101
+
You may then encounter an error with PhpParser:
102
+
103
+
```bash
104
+
Compile Error: Cannot Declare interface PhpParser\NodeVisitor, because the name is already in use
105
+
```
106
+
107
+
If this is the case, you should create a new environment for your application that will disable inlining. In `config/packages/phpstan_env/parameters.yaml`:
108
+
109
+
```yaml
110
+
parameters:
111
+
container.dumper.inline_class_loader: false
112
+
```
113
+
114
+
Call the new env in your `console-application.php`:
115
+
116
+
```php
117
+
$kernel = new \App\Kernel('phpstan_env', (bool) $_SERVER['APP_DEBUG']);
0 commit comments