From 8819078bb6411eb6e39a3c17c4e6221bee6c11c9 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Wed, 5 May 2021 15:43:21 +0545 Subject: [PATCH] Suppress PhanDeprecatedFunction for doctrine/dbal changes --- lib/Manager.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/Manager.php b/lib/Manager.php index 0155c8d..a7954a2 100644 --- a/lib/Manager.php +++ b/lib/Manager.php @@ -78,7 +78,9 @@ public function announce($subject, $message, $user, $time, $parseStrings = true) ->setParameter('time', (int) $time) ->setParameter('user', $user); $result = $query->execute(); + /* @phan-suppress-next-line PhanDeprecatedFunction */ $row = $result->fetch(); + /* @phan-suppress-next-line PhanDeprecatedFunction */ $result->closeCursor(); return [ @@ -114,7 +116,9 @@ public function getAnnouncement($id, $parseStrings = true) { ->where($queryBuilder->expr()->eq('announcement_id', $queryBuilder->createParameter('id'))) ->setParameter('id', (int) $id); $result = $query->execute(); + /* @phan-suppress-next-line PhanDeprecatedFunction */ $row = $result->fetch(); + /* @phan-suppress-next-line PhanDeprecatedFunction */ $result->closeCursor(); if ($row === false) { @@ -150,6 +154,7 @@ public function getAnnouncements($limit = 15, $offset = 0, $parseStrings = true) $result = $query->execute(); $announcements = []; + /* @phan-suppress-next-line PhanDeprecatedFunction */ while ($row = $result->fetch()) { $announcements[] = [ 'id' => (int) $row['announcement_id'], @@ -159,6 +164,7 @@ public function getAnnouncements($limit = 15, $offset = 0, $parseStrings = true) 'message' => ($parseStrings) ? $this->parseMessage($row['announcement_message']) : $row['announcement_message'], ]; } + /* @phan-suppress-next-line PhanDeprecatedFunction */ $result->closeCursor(); return $announcements;