fix phpstan issues

This commit is contained in:
Julie Lenaerts 2023-11-09 19:25:18 +01:00
parent 334d357189
commit 6d608ab35a
3 changed files with 2 additions and 6 deletions

View File

@ -15,10 +15,6 @@ use Symfony\Component\Security\Core\Security;
class DashboardApiController class DashboardApiController
{ {
public function __construct(private readonly Security $security)
{
}
/** /**
* Get user dashboard config (not yet based on user id and still hardcoded for now) * Get user dashboard config (not yet based on user id and still hardcoded for now)
* *

View File

@ -23,7 +23,7 @@ class DashboardConfigItem
* *
* @Serializer\Groups({"dashboardConfigItem:read", "read"}) * @Serializer\Groups({"dashboardConfigItem:read", "read"})
*/ */
private ?int $id; private ?int $id = null;
/** /**
* @ORM\Column(type="string") * @ORM\Column(type="string")

View File

@ -29,7 +29,7 @@ class NewsItemRepository implements ObjectRepository
*/ */
public function find($id) public function find($id)
{ {
$this->repository->find($id); return $this->repository->find($id);
} }
/** /**