Fix type hint in ApiErrorFormatter::addMessagesFromStatus