From bfd73fe8c58ded57d330721bd80aade3b5e719d3 Mon Sep 17 00:00:00 2001 From: Tyson Andre Date: Wed, 22 Aug 2018 22:08:19 -0400 Subject: [PATCH] Fix typos in comments detected by the `misspell` tool --- README.md | 2 +- src/DefinitionResolver.php | 2 +- src/Indexer.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3e753ac5..85ef98b8 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ Definitions resolved just-in-time when needed: Not supported yet: - constants with `define()` -Namespaces are not considerd a declaration by design because they only make up a part of the fully qualified name +Namespaces are not considered a declaration by design because they only make up a part of the fully qualified name and don't map to one unique declaration. ### What is considered a reference? diff --git a/src/DefinitionResolver.php b/src/DefinitionResolver.php index adddf774..4981d0a5 100644 --- a/src/DefinitionResolver.php +++ b/src/DefinitionResolver.php @@ -1091,7 +1091,7 @@ public function getTypeFromNode($node) $parameterDocBlockTag = $this->tryGetDocBlockTagForParameter($docBlock, $variableName); if ($parameterDocBlockTag !== null && ($type = $parameterDocBlockTag->getType())) { - // Doc block comments supercede all other forms of type inference + // Doc block comments supersede all other forms of type inference return $type; } diff --git a/src/Indexer.php b/src/Indexer.php index 7ebff3f4..0882d19b 100644 --- a/src/Indexer.php +++ b/src/Indexer.php @@ -96,7 +96,7 @@ public function __construct( } /** - * Will read and parse the passed source files in the project and add them to the appropiate indexes + * Will read and parse the passed source files in the project and add them to the appropriate indexes * * @return Promise */