Skip to content
Permalink
Browse files

Remove unused param

  • Loading branch information...
muglug committed Jul 7, 2019
1 parent bceb4ef commit 5f8d4edc73d0f485d1da3f258fd99dd0b79a44b4
Showing with 4 additions and 5 deletions.
  1. +4 −5 src/Psalm/Internal/Visitor/ReflectorVisitor.php
@@ -2084,7 +2084,7 @@ private function registerFunctionLike(PhpParser\Node\FunctionLike $stmt, $fake_m
$storage->assertions = [];
foreach ($docblock_info->assertions as $assertion) {
$assertion_type_parts = $this->getAssertionParts($assertion['type'], $stmt, $template_types);
$assertion_type_parts = $this->getAssertionParts($assertion['type'], $stmt);
if (!$assertion_type_parts) {
continue;
@@ -2111,7 +2111,7 @@ private function registerFunctionLike(PhpParser\Node\FunctionLike $stmt, $fake_m
$storage->if_true_assertions = [];
foreach ($docblock_info->if_true_assertions as $assertion) {
$assertion_type_parts = $this->getAssertionParts($assertion['type'], $stmt, $template_types);
$assertion_type_parts = $this->getAssertionParts($assertion['type'], $stmt);
if (!$assertion_type_parts) {
continue;
@@ -2138,7 +2138,7 @@ private function registerFunctionLike(PhpParser\Node\FunctionLike $stmt, $fake_m
$storage->if_false_assertions = [];
foreach ($docblock_info->if_false_assertions as $assertion) {
$assertion_type_parts = $this->getAssertionParts($assertion['type'], $stmt, $template_types);
$assertion_type_parts = $this->getAssertionParts($assertion['type'], $stmt);
if (!$assertion_type_parts) {
continue;
@@ -2390,8 +2390,7 @@ function (FunctionLikeParameter $p) {
*/
private function getAssertionParts(
string $assertion_type,
PhpParser\Node\FunctionLike $stmt,
?array $template_types
PhpParser\Node\FunctionLike $stmt
) : ?array {
$is_union = false;

0 comments on commit 5f8d4ed

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