Skip to content

Conversation

HedicGuibert
Copy link
Contributor

This updates the readme to add the solution given in phpstan/phpstan#4272 (comment)

I also advised to create a new env for performance reasons.

README.md Outdated
@@ -97,3 +97,16 @@ require __DIR__.'/../config/bootstrap.php';
$kernel = new \App\Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
return new \Symfony\Bundle\FrameworkBundle\Console\Application($kernel);
```

You may then encounter an error with PhpParser. If this is the case, you should create a new environment for your application that will disable inlining. In `config/packages/phpstan_env`:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Can you post the full error message that user might encounter?
  2. The file path config/packages/phpstan_env is probably missing a file extension (yml?).

@ondrejmirtes ondrejmirtes merged commit f051037 into phpstan:master Jan 28, 2021
@ondrejmirtes
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants