File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ public function setUserId(string $id)
8484 */
8585 public function setTimestamp ($ microOrUnix )
8686 {
87- $ secondInMicro = intval ('1_000_000 ' );
87+ $ secondInMicro = intval (strtr ( '1_000_000 ' , [ ' _ ' => '' ]) );
8888 $ offsetLimit = strtotime ('-3 days ' ) * $ secondInMicro ;
8989
9090 if (!is_numeric ($ microOrUnix )) {
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ public function testTimeIsMicrotime()
5151
5252 $ arr = $ this ->analytics ->toArray ();
5353
54- $ this ->assertTrue ($ arr ['timestamp_micros ' ] > intval ('1_000_000 ' ));
54+ $ this ->assertTrue ($ arr ['timestamp_micros ' ] > intval (strtr ( '1_000_000 ' , [ ' _ ' => '' ]) ));
5555 }
5656
5757 public function testExceptionIfTimeOlderThanOffsetLimit ()
You can’t perform that action at this time.
0 commit comments