diff --git a/Logger/Logger.php b/Logger/Logger.php index 132681d..6c6f5f2 100644 --- a/Logger/Logger.php +++ b/Logger/Logger.php @@ -11,6 +11,7 @@ use Bazaarvoice\Connector\Api\ConfigProviderInterface; use Exception; use Magento\Framework\App\State; +use Monolog\DateTimeImmutable; /** * Class Logger @@ -71,10 +72,9 @@ public function debug($message, array $context = []): void * @param int $level * @param string $message * @param array $context - * * @return bool */ - public function addRecord($level, $message, array $context = []): bool + public function addRecord(int $level, string $message, array $context = [], DateTimeImmutable $datetime = null): bool { if (is_array($message)) { $message = print_r($message, $return = true); diff --git a/Model/XMLWriter.php b/Model/XMLWriter.php index 21d35be..3c4140f 100644 --- a/Model/XMLWriter.php +++ b/Model/XMLWriter.php @@ -29,8 +29,10 @@ public function writeElement($name, $content = null, $cdata = false): bool $this->startElement($name); $this->writeCdata($content); $this->endElement(); + return true; } else { parent::writeElement($name, $content); + return true; } } @@ -45,8 +47,10 @@ public function writeRaw($content = null, $cdata = false): bool $content = trim((string)$content); if ($cdata) { $this->writeCdata($content); + return true; } else { parent::writeRaw($content); + return true; } } } \ No newline at end of file