aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/AppFramework/Http/DispatcherTest.php
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2021-10-21 16:58:03 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2021-11-23 09:28:58 +0100
commit3a1b3745eb8e43eaa830bdeb9fe53a2de70349f0 (patch)
treeaa6a65fca43a7bdef7983a710b5a789260b0b877 /tests/lib/AppFramework/Http/DispatcherTest.php
parentbc3acfc957f888840cb904950a5932a330504185 (diff)
downloadnextcloud-server-3a1b3745eb8e43eaa830bdeb9fe53a2de70349f0.tar.gz
nextcloud-server-3a1b3745eb8e43eaa830bdeb9fe53a2de70349f0.zip
Fix DateTime constructor calls with null
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'tests/lib/AppFramework/Http/DispatcherTest.php')
-rw-r--r--tests/lib/AppFramework/Http/DispatcherTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/AppFramework/Http/DispatcherTest.php b/tests/lib/AppFramework/Http/DispatcherTest.php
index 966e49effcb..92b772dbe31 100644
--- a/tests/lib/AppFramework/Http/DispatcherTest.php
+++ b/tests/lib/AppFramework/Http/DispatcherTest.php
@@ -148,7 +148,7 @@ class DispatcherTest extends \Test\TestCase {
$this->response = $this->createMock(Response::class);
- $this->lastModified = new \DateTime(null, new \DateTimeZone('GMT'));
+ $this->lastModified = new \DateTime('now', new \DateTimeZone('GMT'));
$this->etag = 'hi';
}