From 220513c5f26f85bc9ca2de318811d2b3422f8023 Mon Sep 17 00:00:00 2001 From: Tyson Andre Date: Fri, 28 Jun 2019 13:59:09 -0400 Subject: [PATCH] Fix typos with codespell (#1870) --- docs/annotating_code/supported_annotations.md | 4 ++-- docs/running_psalm/plugins/authoring_plugins.md | 4 ++-- docs/running_psalm/plugins/plugins_type_system.md | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/annotating_code/supported_annotations.md b/docs/annotating_code/supported_annotations.md index 869ded6d1..f03a823b1 100644 --- a/docs/annotating_code/supported_annotations.md +++ b/docs/annotating_code/supported_annotations.md @@ -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 { diff --git a/docs/running_psalm/plugins/authoring_plugins.md b/docs/running_psalm/plugins/authoring_plugins.md index e640cc1e6..6d665bf1b 100644 --- a/docs/running_psalm/plugins/authoring_plugins.md +++ b/docs/running_psalm/plugins/authoring_plugins.md @@ -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. diff --git a/docs/running_psalm/plugins/plugins_type_system.md b/docs/running_psalm/plugins/plugins_type_system.md index 9d26c60c5..e8a4cb3c9 100644 --- a/docs/running_psalm/plugins/plugins_type_system.md +++ b/docs/running_psalm/plugins/plugins_type_system.md @@ -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.