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 95435f3 commit 584d2a2Copy full SHA for 584d2a2
src/Bolt.php
@@ -56,7 +56,7 @@ private function track(): void
56
foreach (glob($_ENV['TEMP_DIR'] . DIRECTORY_SEPARATOR . 'php-bolt-analytics' . DIRECTORY_SEPARATOR . 'analytics.*.json') as $file) {
57
$time = intval(explode('.', basename($file))[1]);
58
if ($time < strtotime('today')) {
59
- $data = json_decode(file_get_contents($file), true);
+ $data = (array)json_decode((string)file_get_contents($file), true);
60
$distinctId = sha1(implode('', [php_uname(), disk_total_space('.'), filectime('/'), phpversion()]));
61
62
$curl = curl_init();
0 commit comments