mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-31 01:08:26 +00:00 
			
		
		
		
	Fix strong typing on some entities's methods: allow null values
This commit is contained in:
		| @@ -716,7 +716,7 @@ class AccompanyingPeriod implements | ||||
|         ; | ||||
|     } | ||||
|  | ||||
|     public function getCreatedAt(): DateTimeInterface | ||||
|     public function getCreatedAt(): ?DateTimeInterface | ||||
|     { | ||||
|         return $this->createdAt; | ||||
|     } | ||||
|   | ||||
| @@ -96,7 +96,7 @@ class Resource | ||||
|     /** | ||||
|      * @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; | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user