From 35fed907b4705e4e5410bba0a8031433b2fc5573 Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Fri, 3 Dec 2021 09:56:37 -0500 Subject: [PATCH] fix strict equality issue --- tests/phpunit/api/v4/Action/DateTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/api/v4/Action/DateTest.php b/tests/phpunit/api/v4/Action/DateTest.php index 4361d17dd3..255534510c 100644 --- a/tests/phpunit/api/v4/Action/DateTest.php +++ b/tests/phpunit/api/v4/Action/DateTest.php @@ -71,7 +71,7 @@ class DateTest extends UnitTestCase { // Avoid problems with `strtotime()` giving // impossible dates like April 31 which roll over and then don't match. - $thisMonth = date('m'); + $thisMonth = (int) date('m'); $lastMonth = ($thisMonth === 1 ? 12 : $thisMonth - 1); $nextMonth = ($thisMonth === 12 ? 1 : $thisMonth + 1); $lastMonthsYear = ($thisMonth === 1 ? date('Y') - 1 : date('Y')); -- 2.25.1