mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-03 03:00:14 +00:00
fix various phpstan errors
This commit is contained in:
@@ -168,7 +168,7 @@ class Preferences
|
||||
}
|
||||
if (null === $pref) {
|
||||
$pref = new Preference();
|
||||
$pref->user_id = $user->id;
|
||||
$pref->user_id = (int) $user->id;
|
||||
$pref->name = $name;
|
||||
}
|
||||
$pref->data = $value;
|
||||
@@ -286,7 +286,7 @@ class Preferences
|
||||
$lastActivity = implode(',', $lastActivity);
|
||||
}
|
||||
|
||||
return hash('sha256', $lastActivity);
|
||||
return hash('sha256', (string) $lastActivity);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user