Skip to content

Firefly III: a personal finances manager

Catch optional variable.

James Cole9338bfd03b44
diff --git a/app/Factory/CategoryFactory.php b/app/Factory/CategoryFactory.php
index 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;