Skip to content

Commit

Permalink
add documentation for checkDynamicProperties
Browse files Browse the repository at this point in the history
  • Loading branch information
rajyan authored and ondrejmirtes committed Apr 26, 2022
1 parent 8a65968 commit 96488af
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions website/src/config-reference.md
Expand Up @@ -409,6 +409,14 @@ public function setFoo(int $foo): void
}
```

### `checkDynamicProperties`

**default**: `false` ([strict-rules](https://github.com/phpstan/phpstan-strict-rules) sets it to `true`)

**example**: [with `false`](https://phpstan.org/r/3784cac0-9773-4975-8e10-2dc3412a059d), [with `true`](https://phpstan.org/r/e2c2a609-3181-44c5-ad04-e1fac42a40f8)

When set to `true`, it reports use of dynamic properties as undefined.

Exceptions
------------

Expand Down

0 comments on commit 96488af

Please sign in to comment.