From 6b9f8efd0d1fde6858b196a9e83097bac569e34f Mon Sep 17 00:00:00 2001 From: Tyson Andre Date: Sun, 11 Nov 2018 14:05:59 -0500 Subject: [PATCH] Fix other typos --- README.md | 2 +- src/DefinitionResolver.php | 2 +- 2 files changed, 2 insertions(+), 2 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; }