mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-04 23:09:50 +00:00
fix phpstan issues
This commit is contained in:
parent
334d357189
commit
6d608ab35a
@ -15,10 +15,6 @@ use Symfony\Component\Security\Core\Security;
|
||||
|
||||
class DashboardApiController
|
||||
{
|
||||
public function __construct(private readonly Security $security)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Get user dashboard config (not yet based on user id and still hardcoded for now)
|
||||
*
|
||||
|
@ -23,7 +23,7 @@ class DashboardConfigItem
|
||||
*
|
||||
* @Serializer\Groups({"dashboardConfigItem:read", "read"})
|
||||
*/
|
||||
private ?int $id;
|
||||
private ?int $id = null;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string")
|
||||
|
@ -29,7 +29,7 @@ class NewsItemRepository implements ObjectRepository
|
||||
*/
|
||||
public function find($id)
|
||||
{
|
||||
$this->repository->find($id);
|
||||
return $this->repository->find($id);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user