Skip to content

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Sep 3, 2021

}
}

if ($node instanceof Expr\AssignOp\Plus || $node instanceof Expr\BinaryOp\Plus) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just moved this block before the integer-range math

@staabm staabm marked this pull request as ready for review September 3, 2021 07:19
assertType('int', $i - $j);
}

public function unionSum(): void
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When solving a specific issue, please always create a new file called bug-xxxx.php, thanks. The namespace in the file should also match.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@ondrejmirtes ondrejmirtes merged commit ddd520f into phpstan:master Sep 3, 2021
@ondrejmirtes
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

False positive: Binary operation "+" between array()|array(...) and array()|array(...) results in an error.

2 participants