mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
fixes on tests
This commit is contained in:
@@ -173,8 +173,6 @@ class AccompanyingPeriod implements
|
||||
private bool $emergency = false;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Id
|
||||
* @ORM\Column(name="id", type="integer")
|
||||
* @ORM\GeneratedValue(strategy="AUTO")
|
||||
@@ -475,7 +473,7 @@ class AccompanyingPeriod implements
|
||||
$participation = $this->getOpenParticipationContainsPerson($person);
|
||||
|
||||
if ($participation instanceof AccompanyingPeriodParticipation) {
|
||||
$participation->setEndDate(new DateTimeImmutable('now'));
|
||||
$participation->setEndDate(new DateTime('now'));
|
||||
}
|
||||
|
||||
return $participation;
|
||||
@@ -600,11 +598,6 @@ class AccompanyingPeriod implements
|
||||
throw new LogicException('no validation group permitted with this step');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get id.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getId(): ?int
|
||||
{
|
||||
return $this->id;
|
||||
|
@@ -105,7 +105,7 @@ class AccompanyingPeriodParticipation
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setEndDate(?DateTimeInterface $endDate): self
|
||||
public function setEndDate(?DateTime $endDate): self
|
||||
{
|
||||
$this->endDate = $endDate;
|
||||
|
||||
|
@@ -122,7 +122,7 @@ class SocialIssue
|
||||
}
|
||||
|
||||
/**
|
||||
* get all the ancestors of the social issue
|
||||
* get all the ancestors of the social issue.
|
||||
*
|
||||
* @param bool $includeThis if the array in the result must include the present SocialIssue
|
||||
*/
|
||||
@@ -135,7 +135,7 @@ class SocialIssue
|
||||
}
|
||||
|
||||
$current = $this;
|
||||
|
||||
|
||||
while ($current->hasParent()) {
|
||||
$ancestors[] = $current = $current->getParent();
|
||||
}
|
||||
|
Reference in New Issue
Block a user