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
Copy file name to clipboardExpand all lines: README.md
+11-4Lines changed: 11 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -18,27 +18,34 @@ This extension provides following features:
18
18
* Adds missing `matching` method on `Doctrine\Common\Collections\Collection`. This can be turned off by setting `parameters.doctrine.allCollectionsSelectable` to `false`.
19
19
* Also supports Doctrine ODM.
20
20
21
-
## Usage
21
+
## Installation
22
22
23
23
To use this extension, require it in [Composer](https://getcomposer.org/):
24
24
25
25
```
26
26
composer require --dev phpstan/phpstan-doctrine
27
27
```
28
28
29
-
Include extension.neon in your project's PHPStan config:
29
+
If you also install [phpstan/extension-installer](https://github.com/phpstan/extension-installer) then you're all set!
30
+
31
+
<details>
32
+
<summary>Manual installation</summary>
33
+
34
+
If you don't want to use `phpstan/extension-installer`, include extension.neon in your project's PHPStan config:
30
35
31
36
```
32
37
includes:
33
-
- vendor/phpstan/phpstan-doctrine/extension.neon
38
+
- vendor/phpstan/phpstan-doctrine/extension.neon
34
39
```
35
40
36
41
If you're interested in DQL/QueryBuilder validation, include also `rules.neon` (you will also need to provide the `objectManagerLoader`, see below):
0 commit comments