Skip to content

Commit

Permalink
Add doc for DynamicFunctionStorageProviderInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
klimick committed Jan 28, 2022
1 parent 70cea44 commit 5b78125
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/running_psalm/plugins/authoring_plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ class SomePlugin implements \Psalm\Plugin\EventHandler\AfterStatementAnalysisInt
- `PropertyExistenceProviderInterface` - can be used to override Psalm's builtin property existence checks for one or more classes.
- `PropertyTypeProviderInterface` - can be used to override Psalm's builtin property type lookup for one or more classes.
- `PropertyVisibilityProviderInterface` - can be used to override Psalm's builtin property visibility checks for one or more classes.
- `DynamicFunctionStorageProviderInterface` - can be used to override signature for one or more functions. It means you can define variadic param list. Infer return type by input args. Define function templates. Also check out `Psalm\Plugin\DynamicFunctionStorage` to find out what api it brings for you to change function's definition.

Here are a couple of example plugins:
- [StringChecker](https://github.com/vimeo/psalm/blob/master/examples/plugins/StringChecker.php) - checks class references in strings
Expand Down

0 comments on commit 5b78125

Please sign in to comment.