summaryrefslogtreecommitdiff
path: root/app/Contracts/TimestampFactoryInterface.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2024-03-21 15:22:19 +0000
committerGreg Roach <fisharebest@gmail.com>2024-03-21 15:35:50 +0000
commit2c6f1bd538f46b93645991518398bb087011cb42 (patch)
treedff7b3139c34831d853c7486fb260b9deb4a15e0 /app/Contracts/TimestampFactoryInterface.php
parent19ceb1bc4b5b6e1e7a341159091659fb6881acdf (diff)
downloadwebtrees-2c6f1bd538f46b93645991518398bb087011cb42.tar.gz
webtrees-2c6f1bd538f46b93645991518398bb087011cb42.tar.bz2
webtrees-2c6f1bd538f46b93645991518398bb087011cb42.zip
Implicit/explicit nullable types for PHP 8.4
Diffstat (limited to 'app/Contracts/TimestampFactoryInterface.php')
-rw-r--r--app/Contracts/TimestampFactoryInterface.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Contracts/TimestampFactoryInterface.php b/app/Contracts/TimestampFactoryInterface.php
index 4e21dad92a..62e754c9cc 100644
--- a/app/Contracts/TimestampFactoryInterface.php
+++ b/app/Contracts/TimestampFactoryInterface.php
@@ -30,7 +30,7 @@ interface TimestampFactoryInterface
*
* @return TimestampInterface
*/
- public function make(int $timestamp, UserInterface $user = null): TimestampInterface;
+ public function make(int $timestamp, UserInterface|null $user = null): TimestampInterface;
/**
* @param string|null $string YYYY-MM-DD HH:MM:SS (as provided by SQL).
@@ -39,12 +39,12 @@ interface TimestampFactoryInterface
*
* @return TimestampInterface
*/
- public function fromString(?string $string, string $format = 'Y-m-d H:i:s', UserInterface $user = null): TimestampInterface;
+ public function fromString(?string $string, string $format = 'Y-m-d H:i:s', UserInterface|null $user = null): TimestampInterface;
/**
* @param UserInterface|null $user
*
* @return TimestampInterface
*/
- public function now(UserInterface $user = null): TimestampInterface;
+ public function now(UserInterface|null $user = null): TimestampInterface;
}