Skip to content

Commit 811046b

Browse files
janedbalondrejmirtes
authored andcommitted
Readme: add reportUnknownTypes
1 parent a223e35 commit 811046b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,3 +210,13 @@ services:
210210
factory: PHPStan\Type\Doctrine\Descriptors\ReflectionDescriptor('MyApp\MyCustomTypeName')
211211
tags: [phpstan.doctrine.typeDescriptor]
212212
```
213+
214+
### Ensure types have descriptor
215+
216+
If you want to be sure you never forget descriptor for some custom type, you can enable:
217+
218+
```neon
219+
parameters:
220+
doctrine:
221+
reportUnknownTypes: true
222+
```

0 commit comments

Comments
 (0)