summaryrefslogtreecommitdiffstats
path: root/tests/Monolog/Handler/RotatingFileHandlerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Monolog/Handler/RotatingFileHandlerTest.php')
-rw-r--r--tests/Monolog/Handler/RotatingFileHandlerTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/Monolog/Handler/RotatingFileHandlerTest.php b/tests/Monolog/Handler/RotatingFileHandlerTest.php
index 3f91f17..13b8a4c 100644
--- a/tests/Monolog/Handler/RotatingFileHandlerTest.php
+++ b/tests/Monolog/Handler/RotatingFileHandlerTest.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
/*
* This file is part of the Monolog package.
@@ -111,10 +111,10 @@ class RotatingFileHandlerTest extends TestCase
return $now + 86400 * $ago;
};
$monthCallback = function ($ago) {
- return gmmktime(0, 0, 0, date('n') + $ago, date('d'), date('Y'));
+ return gmmktime(0, 0, 0, (int) (date('n') + $ago), (int) date('d'), (int) date('Y'));
};
$yearCallback = function ($ago) {
- return gmmktime(0, 0, 0, date('n'), date('d'), date('Y') + $ago);
+ return gmmktime(0, 0, 0, (int) date('n'), (int) date('d'), (int) (date('Y') + $ago));
};
return [