Skip to content

Commit

Permalink
Fix is_string call
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Aug 10, 2019
1 parent 460120e commit 3f78082
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -1861,7 +1861,7 @@ protected static function processCustomAssertion(
$if_types[$var_id] = [[$prefix . $assertion->rule[0][0]]]; $if_types[$var_id] = [[$prefix . $assertion->rule[0][0]]];
} }
} }
} elseif (is_string($assertion->var_id) } elseif (\is_string($assertion->var_id)
&& strpos($assertion->var_id, '$this->') === 0 && strpos($assertion->var_id, '$this->') === 0
&& $expr instanceof PhpParser\Node\Expr\MethodCall && $expr instanceof PhpParser\Node\Expr\MethodCall
) { ) {
Expand Down Expand Up @@ -1910,7 +1910,7 @@ protected static function processCustomAssertion(
$if_types[$var_id] = [[$negated_prefix . $assertion->rule[0][0]]]; $if_types[$var_id] = [[$negated_prefix . $assertion->rule[0][0]]];
} }
} }
} elseif (is_string($assertion->var_id) } elseif (\is_string($assertion->var_id)
&& strpos($assertion->var_id, '$this->') === 0 && strpos($assertion->var_id, '$this->') === 0
&& $expr instanceof PhpParser\Node\Expr\MethodCall && $expr instanceof PhpParser\Node\Expr\MethodCall
) { ) {
Expand Down

0 comments on commit 3f78082

Please sign in to comment.