Skip to content

Commit 56b59f0

Browse files
mhujerondrejmirtes
authored andcommitted
README: ReflectionDescriptor should use 'factory' instead of 'class'
Otherwise there is a deprecation reported: Service '0': option 'class' should be changed to 'factory'
1 parent c1bf25e commit 56b59f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,6 @@ services:
114114
115115
# in case you are using the ReflectionDescriptor
116116
-
117-
class: PHPStan\Type\Doctrine\Descriptors\ReflectionDescriptor('MyApp\MyCustomTypeName')
117+
factory: PHPStan\Type\Doctrine\Descriptors\ReflectionDescriptor('MyApp\MyCustomTypeName')
118118
tags: [phpstan.doctrine.typeDescriptor]
119119
```

0 commit comments

Comments
 (0)