diff options
Diffstat (limited to 'app/Factories/SourceFactory.php')
| -rw-r--r-- | app/Factories/SourceFactory.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Factories/SourceFactory.php b/app/Factories/SourceFactory.php index 2c1193452a..d7a3d58a7b 100644 --- a/app/Factories/SourceFactory.php +++ b/app/Factories/SourceFactory.php @@ -45,7 +45,7 @@ class SourceFactory extends AbstractGedcomRecordFactory implements SourceFactory * * @return Source|null */ - public function make(string $xref, Tree $tree, string $gedcom = null): ?Source + public function make(string $xref, Tree $tree, string|null $gedcom = null): ?Source { return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () use ($xref, $tree, $gedcom) { $gedcom ??= $this->gedcom($xref, $tree); |
