From b9a444d829c9a16735aceca1b173e765745bcc0c Mon Sep 17 00:00:00 2001 From: Kyle Date: Tue, 13 Nov 2018 09:26:10 +0100 Subject: [PATCH] Fix PHP property_exists bug also touching PHP 7.1.0 -> 7.1.7 (#1508) https://bugs.php.net/bug.php?id=74852 --- src/Carbon/Carbon.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Carbon/Carbon.php b/src/Carbon/Carbon.php index aebe873f6c..5f15e20d7f 100644 --- a/src/Carbon/Carbon.php +++ b/src/Carbon/Carbon.php @@ -3977,7 +3977,7 @@ public function diffInSeconds($date = null, $absolute = true) $diff->h * static::MINUTES_PER_HOUR * static::SECONDS_PER_MINUTE + $diff->i * static::SECONDS_PER_MINUTE + $diff->s - ( - version_compare(PHP_VERSION, '7.1.0-dev', '>=') && + version_compare(PHP_VERSION, '7.1.8-dev', '>=') && property_exists($diff, 'f') && $diff->f < 0 ? 1