mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Fix typos with codespell (#1870)
This commit is contained in:
parent
62c37a84f2
commit
220513c5f2
@ -141,13 +141,13 @@ $a->bar = 5; // this call fails
|
|||||||
### `@psalm-internal`
|
### `@psalm-internal`
|
||||||
|
|
||||||
Used to mark a class, property or function as internal to a given namespace. Psalm treats this slightly differently to
|
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.
|
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
|
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.
|
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
|
```PHP
|
||||||
namespace A\B {
|
namespace A\B {
|
||||||
|
@ -21,10 +21,10 @@ class SomePlugin implements \Psalm\Plugin\Hook\AfterStatementAnalysisInterface
|
|||||||
- `AfterMethodCallAnalysisInterface` - called after Psalm analyzes a method call.
|
- `AfterMethodCallAnalysisInterface` - called after Psalm analyzes a method call.
|
||||||
- `AfterStatementAnalysisInterface` - called after Psalm evaluates an statement.
|
- `AfterStatementAnalysisInterface` - called after Psalm evaluates an statement.
|
||||||
- `FunctionExistenceProviderInterface` - can be used to override Psalm's builtin function existence checks for one or more functions.
|
- `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.
|
- `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.
|
- `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.
|
- `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.
|
- `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.
|
- `PropertyExistenceProviderInterface` - can be used to override Psalm's builtin property existence checks for one or more classes.
|
||||||
|
@ -63,7 +63,7 @@ All scalar types have literal versions e.g. `int` vs `int(5)`.
|
|||||||
|
|
||||||
#### Floats
|
#### 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.
|
`TLiteralFloat` is used to represent a floating point value where the exact numeric value is known.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user