typehints fixed

This commit is contained in:
Julie Lenaerts 2021-08-04 15:13:45 +02:00
parent eec913375e
commit 61d8e06975
2 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,7 @@
<?php <?php
declare(strict_types=1);
namespace Chill\AsideActivityBundle\Entity; namespace Chill\AsideActivityBundle\Entity;
use Chill\MainBundle\Doctrine\Model\TrackCreationInterface; use Chill\MainBundle\Doctrine\Model\TrackCreationInterface;

View File

@ -1,5 +1,7 @@
<?php <?php
declare(strict_types=1);
namespace Chill\AsideActivityBundle\Entity; namespace Chill\AsideActivityBundle\Entity;
use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\ArrayCollection;
@ -17,7 +19,7 @@ final class AsideActivityCategory
* @ORM\GeneratedValue * @ORM\GeneratedValue
* @ORM\Column(type="integer") * @ORM\Column(type="integer")
*/ */
private $id; private int $id;
/** /**
* @ORM\Column(type="json", length=255) * @ORM\Column(type="json", length=255)
@ -34,12 +36,12 @@ final class AsideActivityCategory
return $this->id; return $this->id;
} }
public function getTitle(): ?string public function getTitle(): ?array
{ {
return $this->title; return $this->title;
} }
public function setTitle(string $title): self public function setTitle(array $title): self
{ {
$this->title = $title; $this->title = $title;