diff --git a/src/Bundle/ChillMainBundle/Tests/Security/PasswordRecover/TokenManagerTest.php b/src/Bundle/ChillMainBundle/Tests/Security/PasswordRecover/TokenManagerTest.php index 7083cfdc4..4bb6c6743 100644 --- a/src/Bundle/ChillMainBundle/Tests/Security/PasswordRecover/TokenManagerTest.php +++ b/src/Bundle/ChillMainBundle/Tests/Security/PasswordRecover/TokenManagerTest.php @@ -88,7 +88,7 @@ final class TokenManagerTest extends KernelTestCase $this->assertFalse($tokenManager->verify($hash . '5', $token, $user, $timestamp)); $this->assertFalse($tokenManager->verify($hash, $token . '25', $user, $timestamp)); $this->assertFalse($tokenManager->verify($hash, $token, $user->setUsernameCanonical('test2'), $timestamp)); - $this->assertFalse($tokenManager->verify($hash, $token, $user, $timestamp + 1)); + $this->assertFalse($tokenManager->verify($hash, $token, $user, (string) ($timestamp + 1))); } public function testVerifyExpiredFails() diff --git a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod.php b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod.php index 849983187..f232558a2 100644 --- a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod.php +++ b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod.php @@ -475,7 +475,7 @@ class AccompanyingPeriod implements $participation = $this->getOpenParticipationContainsPerson($person); if ($participation instanceof AccompanyingPeriodParticipation) { - $participation->setEndDate(new DateTimeImmutable('now')); + $participation->setEndDate(new DateTime('now')); } return $participation;