From 1968057f42210e3f5675d46126a1dc6506616ef3 Mon Sep 17 00:00:00 2001 From: Bruce Wells Date: Fri, 18 Aug 2023 12:11:23 -0400 Subject: Phpcs fixer (#129) * PHPCSFixer V3.23 * Run PHPCSFixer --- tests/MathTest.php | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/MathTest.php b/tests/MathTest.php index 573b634..8c22224 100644 --- a/tests/MathTest.php +++ b/tests/MathTest.php @@ -1018,6 +1018,7 @@ class MathTest extends TestCase if (\is_scalar($variable) || null === $variable) { return; } + // Allow variables of type DateTime, but not others if (! $variable instanceof \DateTime) { throw new MathExecutorException('Invalid variable type'); -- cgit v1.2.3