From 4ecdda9b74a443af9bee80263bf35c0170ad05a0 Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Fri, 30 Aug 2024 13:26:21 +0900 Subject: [PATCH] Run Linter, Address PHPStan --- src/Database/Adapter/Postgres.php | 2 +- src/Database/Database.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Database/Adapter/Postgres.php b/src/Database/Adapter/Postgres.php index 18f980046..812a1047c 100644 --- a/src/Database/Adapter/Postgres.php +++ b/src/Database/Adapter/Postgres.php @@ -390,7 +390,7 @@ public function updateAttribute(string $collection, string $id, string $type, in ->execute(); return $result; - } catch (Exception $e) { + } catch (PDOException $e) { $this->processException($e); return false; } diff --git a/src/Database/Database.php b/src/Database/Database.php index f52ba17c9..437f18881 100644 --- a/src/Database/Database.php +++ b/src/Database/Database.php @@ -1761,7 +1761,7 @@ public function updateAttribute(string $collection, string $id, string $type = n ->setAttribute('$id', $newKey ?? $id) ->setattribute('key', $newKey ?? $id) ->setAttribute('type', $type) - ->setAttribute('size', $size) + ->setAttribute('size', $size) ->setAttribute('signed', $signed) ->setAttribute('array', $array) ->setAttribute('format', $format)