Issue #3293512 by yurikulinkovich: Argument 2 ($code) is 'error' of type 'error' but \Exception::__construct() takes int