- Code: Select all
try {
//Do some stuff
}
catch (LogicException $e) {
//Deal with exception
}
catch (AnotherTypeOfException $e) {
//Deal with exception
}
catch (Exception $e) {
//Deal with exception
}
From my understanding, the code above should be valid, but ZS10 is saying "Cannot redeclare field $e in type MyClass" for the second and third catches. Is this a bug in ZS?

