diff --git a/Database/Command.php b/Database/Command.php index b083f69b..89fb933f 100644 --- a/Database/Command.php +++ b/Database/Command.php @@ -14,6 +14,7 @@ use Snowflake\Abstracts\Component; use Exception; use PDO; use PDOStatement; +use Snowflake\Core\Json; use Snowflake\Exception\ComponentException; /** @@ -150,7 +151,7 @@ class Command extends Component $export['param'] = $this->params; $export['time'] = microtime(true) - $time; - logger()->debug(print_r($export, true), 'mysql'); + logger()->debug(Json::encode($export), 'mysql'); return $result; } diff --git a/Database/Mysql/Schema.php b/Database/Mysql/Schema.php index a1b82fd9..3fea5aab 100644 --- a/Database/Mysql/Schema.php +++ b/Database/Mysql/Schema.php @@ -3,6 +3,7 @@ declare(strict_types=1); namespace Database\Mysql; +use Exception; use Snowflake\Abstracts\Component; use Database\Connection; @@ -22,6 +23,7 @@ class Schema extends Component /** * @return Columns|null + * @throws Exception */ public function getColumns(): ?Columns {