public function enableRecoverableErrorHandling() {
        if ($this->isRecoverableErrorHandlingEnabled()) {
            return;
        }

        set_error_handler(function ($number, $string, $file, $line) {
            // remove error from error_get_last()
            @trigger_error(null);

            return $this->errorConverter->createRecoverableErrorAndCallHandler(
                $this, $number, $string, $file, $line
            );
        });
        $this->isRecoverableErrorHandlingEnabled = true;
    }