Closed
Description
The following snippet reports a false positive:
try {
return $x / $y;
} catch (ArithmeticError $exception) {
}
ArithmeticError is never thrown in the corresponding try block
According to the PHP's docs, division, remainder and bitwise operations can throw ArithmeticException
.
Metadata
Metadata
Assignees
Labels
No labels