/** {@inheritdoc} */ public function handleError(ErrorException $error, Metadata $metadata) { $metadataArr = $this->prepareForSending($metadata); $this->setContext($error->getContext()); $this->notifyError(ErrorException::$phpErrors[$error->getCode()], $error->getMessage(), $metadataArr, self::$SEVERITY_MAP[$metadata->getSeverity()]); return $metadataArr['grouping_hash']; }
/** {@inheritdoc} */ public function handleError(ErrorException $error, Metadata $metadata = null) { $metadata = $this->addDefaultCategory($metadata); $this->errorHandler->handleError($error->getCode(), $error->getMessage(), $error->getFile(), $error->getLine(), $error->getContext(), $metadata); }