Skip to content
Permalink
Browse files

Fix undefined var

  • Loading branch information
muglug committed Dec 31, 2019
1 parent 16b8edd commit f79088a95509556ba4024a89f20c52a160bf63c2
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/Psalm/Internal/Visitor/ReflectorVisitor.php
@@ -2609,7 +2609,7 @@ private function inferPropertyTypeFromConstructor(
}

/**
* @return ?array<int, string>
* @return ?list<string>
*/
private function getAssertionParts(
string $assertion_type,
@@ -2681,6 +2681,8 @@ private function getAssertionParts(
$this->function_template_types + $class_template_types
);

$assertion_type_parts = [];

foreach ($namespaced_type->getTypes() as $namespaced_type_part) {
if ($namespaced_type_part instanceof Type\Atomic\TAssertionFalsy
|| ($namespaced_type_part instanceof Type\Atomic\TList

0 comments on commit f79088a

Please sign in to comment.
You can’t perform that action at this time.