summaryrefslogtreecommitdiff
path: root/app/Contracts/SharedNoteFactoryInterface.php
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2024-03-23 14:47:59 +0000
committerGreg Roach <greg@subaqua.co.uk>2024-03-31 17:33:15 +0100
commit1ff45046fabc22237b5d0d8e489c96f031fc598d (patch)
tree728dee9fa8c59cd48c7efe7eb8fb3f2e94d1af7a /app/Contracts/SharedNoteFactoryInterface.php
parentf25fc0f929f69ab8124cf0cecde45e457db7574a (diff)
downloadwebtrees-1ff45046fabc22237b5d0d8e489c96f031fc598d.tar.gz
webtrees-1ff45046fabc22237b5d0d8e489c96f031fc598d.tar.bz2
webtrees-1ff45046fabc22237b5d0d8e489c96f031fc598d.zip
PHP 8.2 - union types
Diffstat (limited to 'app/Contracts/SharedNoteFactoryInterface.php')
-rw-r--r--app/Contracts/SharedNoteFactoryInterface.php10
1 files changed, 2 insertions, 8 deletions
diff --git a/app/Contracts/SharedNoteFactoryInterface.php b/app/Contracts/SharedNoteFactoryInterface.php
index 6130e6f9ea..e1413baf0f 100644
--- a/app/Contracts/SharedNoteFactoryInterface.php
+++ b/app/Contracts/SharedNoteFactoryInterface.php
@@ -30,14 +30,8 @@ interface SharedNoteFactoryInterface extends GedcomRecordFactoryInterface
{
/**
* Create a note.
- *
- * @param string $xref
- * @param Tree $tree
- * @param string|null $gedcom
- *
- * @return SharedNote|null
*/
- public function make(string $xref, Tree $tree, string|null $gedcom = null): ?SharedNote;
+ public function make(string $xref, Tree $tree, string|null $gedcom = null): SharedNote|null;
/**
* Create a note from a row in the database.
@@ -59,5 +53,5 @@ interface SharedNoteFactoryInterface extends GedcomRecordFactoryInterface
*
* @return SharedNote
*/
- public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): SharedNote;
+ public function new(string $xref, string $gedcom, string|null $pending, Tree $tree): SharedNote;
}