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