I can only repeat myself. This was already discussed in the previous PRs. Please research before. Just FYI \Exception::getCode() may return `mixed` according to the PHP doc. So we should respect that.