1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Fix typos with codespell (#1870)

This commit is contained in:
Tyson Andre 2019-06-28 13:59:09 -04:00 committed by Matthew Brown
parent 62c37a84f2
commit 220513c5f2
3 changed files with 5 additions and 5 deletions

View File

@ -141,13 +141,13 @@ $a->bar = 5; // this call fails
### `@psalm-internal`
Used to mark a class, property or function as internal to a given namespace. Psalm treats this slightly differently to
the PHPDoc `@internal` tag. For `@internal`, an issue is raised if the calling code is in a namespace completly
the PHPDoc `@internal` tag. For `@internal`, an issue is raised if the calling code is in a namespace completely
unrelated to the namespace of the calling code, i.e. not sharing the first element of the namespace.
In contrast for `@psalm-internal`, the docbloc line must specify a namespace. An issue is raised if the calling code
is not within the given namespace.
As other tools do not support `@psalm-internal`, it may only be used in conjuction with `@internal`.
As other tools do not support `@psalm-internal`, it may only be used in conjunction with `@internal`.
```PHP
namespace A\B {

View File

@ -21,10 +21,10 @@ class SomePlugin implements \Psalm\Plugin\Hook\AfterStatementAnalysisInterface
- `AfterMethodCallAnalysisInterface` - called after Psalm analyzes a method call.
- `AfterStatementAnalysisInterface` - called after Psalm evaluates an statement.
- `FunctionExistenceProviderInterface` - can be used to override Psalm's builtin function existence checks for one or more functions.
- `FunctionParamsProviderInterface.php` - can be used to override Psalm's builtin function paramter lookup for one or more functions.
- `FunctionParamsProviderInterface.php` - can be used to override Psalm's builtin function parameter lookup for one or more functions.
- `FunctionReturnTypeProviderInterface` - can be used to override Psalm's builtin function return type lookup for one or more functions.
- `MethodExistenceProviderInterface` - can be used to override Psalm's builtin method existence checks for one or more classes.
- `MethodParamsProviderInterface` - can be used to override Psalm's builtin method paramter lookup for one or more classes.
- `MethodParamsProviderInterface` - can be used to override Psalm's builtin method parameter lookup for one or more classes.
- `MethodReturnTypeProviderInterface` - can be used to override Psalm's builtin method return type lookup for one or more classes.
- `MethodVisibilityProviderInterface` - can be used to override Psalm's builtin method visibility checks for one or more classes.
- `PropertyExistenceProviderInterface` - can be used to override Psalm's builtin property existence checks for one or more classes.

View File

@ -63,7 +63,7 @@ All scalar types have literal versions e.g. `int` vs `int(5)`.
#### Floats
`TFloat` - denotes the `float` type, where the exact value is unkown.
`TFloat` - denotes the `float` type, where the exact value is unknown.
`TLiteralFloat` is used to represent a floating point value where the exact numeric value is known.