mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-03 21:34:59 +00:00
DX: apply rector rules up to php8.0
This commit is contained in:
@@ -571,7 +571,7 @@ class AccompanyingPeriod implements
|
||||
*
|
||||
* @param mixed $person
|
||||
*/
|
||||
public function closeParticipationFor($person): ?AccompanyingPeriodParticipation
|
||||
public function closeParticipationFor(mixed $person): ?AccompanyingPeriodParticipation
|
||||
{
|
||||
$participation = $this->getOpenParticipationContainsPerson($person);
|
||||
|
||||
@@ -950,10 +950,9 @@ class AccompanyingPeriod implements
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Person|ThirdParty
|
||||
* @Groups({"read"})
|
||||
*/
|
||||
public function getRequestor()
|
||||
public function getRequestor(): \Chill\PersonBundle\Entity\Person|\Chill\ThirdPartyBundle\Entity\ThirdParty
|
||||
{
|
||||
return $this->requestorPerson ?? $this->requestorThirdParty;
|
||||
}
|
||||
@@ -1215,7 +1214,7 @@ class AccompanyingPeriod implements
|
||||
*
|
||||
* @return AccompanyingPeriod
|
||||
*/
|
||||
public function setClosingDate($closingDate)
|
||||
public function setClosingDate(mixed $closingDate)
|
||||
{
|
||||
$this->closingDate = $closingDate;
|
||||
|
||||
@@ -1274,11 +1273,10 @@ class AccompanyingPeriod implements
|
||||
/**
|
||||
* Set openingDate.
|
||||
*
|
||||
* @param mixed $openingDate
|
||||
*
|
||||
* @return AccompanyingPeriod
|
||||
*/
|
||||
public function setOpeningDate($openingDate)
|
||||
public function setOpeningDate(mixed $openingDate)
|
||||
{
|
||||
if ($this->openingDate !== $openingDate) {
|
||||
$this->openingDate = $openingDate;
|
||||
|
Reference in New Issue
Block a user