Skip to content

Commit

Permalink
Fix PHP property_exists bug also touching PHP 7.1.0 -> 7.1.7 (#1508)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylekatarnls authored Nov 13, 2018
1 parent 3b903d2 commit b9a444d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Carbon/Carbon.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b9a444d

Please sign in to comment.