Skip to content

Commit 584d2a2

Browse files
type casting
1 parent 95435f3 commit 584d2a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Bolt.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ private function track(): void
5656
foreach (glob($_ENV['TEMP_DIR'] . DIRECTORY_SEPARATOR . 'php-bolt-analytics' . DIRECTORY_SEPARATOR . 'analytics.*.json') as $file) {
5757
$time = intval(explode('.', basename($file))[1]);
5858
if ($time < strtotime('today')) {
59-
$data = json_decode(file_get_contents($file), true);
59+
$data = (array)json_decode((string)file_get_contents($file), true);
6060
$distinctId = sha1(implode('', [php_uname(), disk_total_space('.'), filectime('/'), phpversion()]));
6161

6262
$curl = curl_init();

0 commit comments

Comments
 (0)