Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Catch optional variable.
James Cole9338bfd03b44
diff --git a/app/Factory/CategoryFactory.php b/app/Factory/CategoryFactory.phpindex 69e8270332..8d1f089ab1 100644--- a/app/Factory/CategoryFactory.php+++ b/app/Factory/CategoryFactory.php@@ -45,7 +45,7 @@ class CategoryFactory/*** @throws FireflyException*/- public function findOrCreate(?int $categoryId, ?string $categoryName, ?string $color): ?Category+ public function findOrCreate(?int $categoryId, ?string $categoryName, ?string $color = null): ?Category{$categoryId = (int) $categoryId;$categoryName = (string) $categoryName;