Skip to content

Firefly III: a personal finances manager

Fix phpstan issue.

James Cole363f3ab60c6c
diff --git a/app/Support/Binder/PreferenceList.php b/app/Support/Binder/PreferenceList.php
index 6b22fcef54..b43e989f0c 100644
--- a/app/Support/Binder/PreferenceList.php
+++ b/app/Support/Binder/PreferenceList.php
@@ -54,10 +54,8 @@ class PreferenceList implements BinderInterface
if (null === $current) {
$current = Preferences::set($item, null);
}
- if (null !== $current) {
- Log::debug(sprintf('Add %s to the result', $item));
- $result->push($current);
- }
+ Log::debug(sprintf('Add %s to the result', $item));
+ $result->push($current);
}
Log::debug('List of preferences is', $result->toArray());