fixes on tests

This commit is contained in:
2021-12-08 10:56:39 +00:00
parent 56dd825f39
commit fa5001265f
26 changed files with 146 additions and 136 deletions

View File

@@ -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;

View File

@@ -105,7 +105,7 @@ class AccompanyingPeriodParticipation
return $this;
}
public function setEndDate(?DateTimeInterface $endDate): self
public function setEndDate(?DateTime $endDate): self
{
$this->endDate = $endDate;

View File

@@ -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();
}