We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1e695f commit 8910c51Copy full SHA for 8910c51
1 file changed
tests/Carbon/SettersTest.php
@@ -241,8 +241,8 @@ public function testTimestampSetter()
241
$d->timestamp = 1600887164.88952298;
242
$this->assertSame('2020-09-23 14:52:44.889523', $d->format('Y-m-d H:i:s.u'));
243
244
- $d->setTimestamp(1599828571.235612);
245
- $this->assertSame('2020-09-11 08:49:31.235612', $d->format('Y-m-d H:i:s.u'));
+ $d->setTimestamp(1599828571.23561248);
+ $this->assertSame(PHP_VERSION_ID < 80400 ? '2020-09-11 08:49:31.235612' : '2020-09-11 08:49:31.235613', $d->format('Y-m-d H:i:s.u'));
246
247
$d->timestamp = '0.88951247 1600887164';
248
$this->assertSame('2020-09-23 14:52:44.889512', $d->format('Y-m-d H:i:s.u'));
0 commit comments