Skip to content

Commit

Permalink
Merge pull request #24 from FriendsOfCake/2.x-_hash-return-string
Browse files Browse the repository at this point in the history
[2.x] Always return string from ChecksumTestFixture::_hash
  • Loading branch information
ADmad authored Aug 25, 2023
2 parents 186e1df + 373c243 commit 45f262e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TestSuite/Fixture/ChecksumTestFixture.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ protected function _hash(ConnectionInterface $db): string
if ($driver instanceof Mysql) {
$sth = $db->execute('CHECKSUM TABLE `' . $this->table . '`');

return $sth->fetchColumn(1);
return (string)$sth->fetchColumn(1);
}

// Have no better idea right now to make it always regenerate the tables
return microtime();
return microtime(false);
}

/**
Expand Down

0 comments on commit 45f262e

Please sign in to comment.