1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Add docs for usePhpDocMethodsWithoutMagicCall

This commit is contained in:
Matt Brown 2018-04-26 19:15:16 -04:00
parent 4507962883
commit 383f706d6b

View File

@ -21,6 +21,8 @@ Psalm uses an XML config file. A barebones example looks like this:
whether or not to use types as defined in docblocks. Defaults to `true`. whether or not to use types as defined in docblocks. Defaults to `true`.
- `useDocblockPropertyTypes=[bool]`<br /> - `useDocblockPropertyTypes=[bool]`<br />
if not using all docblock types, you can still use docblock property types. Defaults to `false` (though only relevant if `useDocblockTypes` is `false`. if not using all docblock types, you can still use docblock property types. Defaults to `false` (though only relevant if `useDocblockTypes` is `false`.
- `usePhpDocMethodsWithoutMagicCall=[bool]`<br />
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=[bool]`<br /> - `strictBinaryOperands=[bool]`<br />
if true we force strict typing on numerical and string operations (see https://github.com/vimeo/psalm/issues/24). Defaults to `false`. if true we force strict typing on numerical and string operations (see https://github.com/vimeo/psalm/issues/24). Defaults to `false`.
- `requireVoidReturnType=[bool]`<br /> - `requireVoidReturnType=[bool]`<br />