1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00

Added documentation for usePhpDocPropertiesWithoutMagicCall (#3748)

Fixes vimeo/psalm#3730
This commit is contained in:
Bruce Weirdan 2020-07-05 00:20:45 +03:00 committed by GitHub
parent 7c7ebd068f
commit 1abbcc4364
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,6 +105,15 @@ If not using all docblock types, you can still use docblock property types. Defa
usePhpDocMethodsWithoutMagicCall="[bool]"
>
```
The PHPDoc `@property`, `@property-read` and `@property-write` annotations normally only apply to classes with `__get`/`__set` methods. Setting this to `true` allows you to use the `@property`, `@property-read` and `@property-write` annotations to override property existance checks and resulting property types. Defaults to `false`.
#### usePhpDocPropertiesWithoutMagicCall
```xml
<psalm
usePhpDocPropertiesWithoutMagicCall="[bool]"
>
```
The PHPDoc `@method` annotation normally only applies to classes with a `__call` method. Setting this to `true` allows you to use the `@method` annotation to override inherited method return types. Defaults to `false`.
#### strictBinaryOperands