Skip to content

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Nov 29, 2025

No description provided.

Comment on lines +43 to +48
$throwPoints = array_merge($leftResult->throwPoints, $rightResult->throwPoints);
if (
!$rightResult->type->toNumber()->isSuperTypeOf(new ConstantIntegerType(0))->no()
) {
$throwPoints[] = InternalThrowPoint::createExplicit($scope, new ObjectType(DivisionByZeroError::class), $expr, false);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

addresses #4585 (comment)

@ondrejmirtes ondrejmirtes merged commit 9eb4e6d into phpstan:2.1.x Nov 29, 2025
608 of 638 checks passed
@ondrejmirtes
Copy link
Member

Perfect, thank you!

@staabm staabm deleted the nsrmul branch November 29, 2025 15:03
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.

2 participants