protected functioncheckModifier(int $a, int $b, int $modifierPos) : void {
// Jumping through some hoops here because verifyModifier() is also used elsewheretry {
Modifiers::verifyModifier($a, $b);
} catch (Error $error) {
$error->setAttributes($this->getAttributesAt($modifierPos));
$this->emitError($error);
}
}