From f491cd2f17fdf55775a3697da05ba321b44a133d Mon Sep 17 00:00:00 2001 From: vgreb Date: Fri, 24 Jul 2026 21:52:41 +0200 Subject: [PATCH] =?UTF-8?q?Suppresion=20d'une=20classe=20inutilis=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit La table a été supprimée https://github.com/afup/web/pull/1693 --- phpstan-baseline.php | 24 ---------- sources/AppBundle/Event/Model/Tweet.php | 58 ------------------------- 2 files changed, 82 deletions(-) delete mode 100644 sources/AppBundle/Event/Model/Tweet.php diff --git a/phpstan-baseline.php b/phpstan-baseline.php index 05d397863..e24e58b56 100644 --- a/phpstan-baseline.php +++ b/phpstan-baseline.php @@ -7981,30 +7981,6 @@ 'count' => 1, 'path' => __DIR__ . '/sources/AppBundle/Event/Model/TicketType.php', ]; -$ignoreErrors[] = [ - 'message' => '#^Cannot cast mixed to int\\.$#', - 'identifier' => 'cast.int', - 'count' => 1, - 'path' => __DIR__ . '/sources/AppBundle/Event/Model/Tweet.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Cannot cast mixed to string\\.$#', - 'identifier' => 'cast.string', - 'count' => 1, - 'path' => __DIR__ . '/sources/AppBundle/Event/Model/Tweet.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Method AppBundle\\\\Event\\\\Model\\\\Tweet\\:\\:setId\\(\\) has parameter \\$id with no type specified\\.$#', - 'identifier' => 'missingType.parameter', - 'count' => 1, - 'path' => __DIR__ . '/sources/AppBundle/Event/Model/Tweet.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Method AppBundle\\\\Event\\\\Model\\\\Tweet\\:\\:setTalkId\\(\\) has parameter \\$talkId with no type specified\\.$#', - 'identifier' => 'missingType.parameter', - 'count' => 1, - 'path' => __DIR__ . '/sources/AppBundle/Event/Model/Tweet.php', -]; $ignoreErrors[] = [ 'message' => '#^Method AppBundle\\\\Event\\\\Model\\\\Vote\\:\\:getId\\(\\) should return int but returns int\\|null\\.$#', 'identifier' => 'return.type', diff --git a/sources/AppBundle/Event/Model/Tweet.php b/sources/AppBundle/Event/Model/Tweet.php deleted file mode 100644 index fcc8cb71d..000000000 --- a/sources/AppBundle/Event/Model/Tweet.php +++ /dev/null @@ -1,58 +0,0 @@ -id; - } - - public function setId($id): self - { - $id = (string) $id; - $this->propertyChanged('id', $this->id, $id); - $this->id = $id; - - return $this; - } - - public function getTalkId(): ?int - { - return $this->talkId; - } - - public function setTalkId($talkId): void - { - $talkId = (int) $talkId; - $this->propertyChanged('talkId', $this->talkId, $talkId); - $this->talkId = $talkId; - } - - public function getCreatedAt(): ?\DateTime - { - return $this->createdAt; - } - - public function setCreatedAt(\DateTime $createdAt): self - { - $this->propertyChanged('createdAt', $this->createdAt, $createdAt); - $this->createdAt = $createdAt; - - return $this; - } -}