Skip to content

Commit

Permalink
Added documentation for usePhpDocPropertiesWithoutMagicCall (#3748)
Browse files Browse the repository at this point in the history
Fixes #3730
  • Loading branch information
weirdan committed Jul 4, 2020
1 parent 7c7ebd0 commit 1abbcc4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/running_psalm/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1abbcc4

Please sign in to comment.