mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Fix strong typing on some entities's methods: allow null values
This commit is contained in:
parent
847fd71364
commit
e2a739eeff
@ -716,7 +716,7 @@ class AccompanyingPeriod implements
|
|||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getCreatedAt(): DateTimeInterface
|
public function getCreatedAt(): ?DateTimeInterface
|
||||||
{
|
{
|
||||||
return $this->createdAt;
|
return $this->createdAt;
|
||||||
}
|
}
|
||||||
|
@ -96,7 +96,7 @@ class Resource
|
|||||||
/**
|
/**
|
||||||
* @Groups({"read"})
|
* @Groups({"read"})
|
||||||
*/
|
*/
|
||||||
public function getResource(): \Chill\PersonBundle\Entity\Person|\Chill\ThirdPartyBundle\Entity\ThirdParty
|
public function getResource(): \Chill\PersonBundle\Entity\Person|\Chill\ThirdPartyBundle\Entity\ThirdParty|null
|
||||||
{
|
{
|
||||||
return $this->person ?? $this->thirdParty;
|
return $this->person ?? $this->thirdParty;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user