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; - } -}