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
> Want a full walk-through of the installation & configuration process? Read the blog post at M.academy about [Static Analysis in Magento with PHPStan](https://m.academy/blog/static-analysis-magento-phpstan/).
35
-
36
-
### PHPStan configuration
37
-
38
-
If you have not already a PHPStan configuration file `phpstan.neon` in your project, create a new empty file next to your `composer.json` file.
39
-
40
-
This PHPStan extension needs to be registered with PHPStan so that PHPStan can load it properly.
41
-
The easiest way to do this is to install the `phpstan/extension-installer` package as follows:
25
+
This PHPStan extension needs to be registered with PHPStan so that the extension gets loaded properly. The easiest way to do this is
26
+
to install the `phpstan/extension-installer` package as follows:
If you're using composer >= 2.2.0 you have to allow the execution of composer plugins ([see allow-plugins section](https://getcomposer.org/doc/06-config.md#allow-plugins)) as follows:
If you're using Composer >= 2.2.0 you have to allow the execution of composer plugins ([see allow-plugins section](https://getcomposer.org/doc/06-config.md#allow-plugins)) as follows:
If you are using phpstan-magento 0.15.0 and earlier, you need to register the custom autoloader that comes with this extension by adding `vendor/bitexpert/phpstan-magento/autoload.php`
67
-
as a bootstrap file. If you are using phpstan-magento > 0.15.0 this step is done automatically by the extension itself.
54
+
> Want a full walk-through of the installation & configuration process? Read the blog post at M.academy about [Static Analysis in Magento with PHPStan](https://m.academy/blog/static-analysis-magento-phpstan/).
68
55
69
-
```neon
70
-
parameters:
71
-
bootstrapFiles:
72
-
- vendor/bitexpert/phpstan-magento/autoload.php
73
-
```
56
+
### PHPStan configuration
57
+
58
+
If you have not already a PHPStan configuration file `phpstan.neon` in your project, create a new empty file next to your `composer.json` file.
59
+
60
+
See [here](https://phpstan.org/config-reference) what options PHPStan allows you to configure.
0 commit comments