diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2024-03-23 14:47:59 +0000 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2024-03-31 17:33:15 +0100 |
| commit | 1ff45046fabc22237b5d0d8e489c96f031fc598d (patch) | |
| tree | 728dee9fa8c59cd48c7efe7eb8fb3f2e94d1af7a /app/Contracts/MediaFactoryInterface.php | |
| parent | f25fc0f929f69ab8124cf0cecde45e457db7574a (diff) | |
| download | webtrees-1ff45046fabc22237b5d0d8e489c96f031fc598d.tar.gz webtrees-1ff45046fabc22237b5d0d8e489c96f031fc598d.tar.bz2 webtrees-1ff45046fabc22237b5d0d8e489c96f031fc598d.zip | |
PHP 8.2 - union types
Diffstat (limited to 'app/Contracts/MediaFactoryInterface.php')
| -rw-r--r-- | app/Contracts/MediaFactoryInterface.php | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/app/Contracts/MediaFactoryInterface.php b/app/Contracts/MediaFactoryInterface.php index 697fc89ed7..da1b6a2a2c 100644 --- a/app/Contracts/MediaFactoryInterface.php +++ b/app/Contracts/MediaFactoryInterface.php @@ -30,14 +30,8 @@ interface MediaFactoryInterface extends GedcomRecordFactoryInterface { /** * Create a media object. - * - * @param string $xref - * @param Tree $tree - * @param string|null $gedcom - * - * @return Media|null */ - public function make(string $xref, Tree $tree, string|null $gedcom = null): ?Media; + public function make(string $xref, Tree $tree, string|null $gedcom = null): Media|null; /** * Create a media object from a row in the database. @@ -59,5 +53,5 @@ interface MediaFactoryInterface extends GedcomRecordFactoryInterface * * @return Media */ - public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): Media; + public function new(string $xref, string $gedcom, string|null $pending, Tree $tree): Media; } |
