diff options
| author | wn_ <invalid@email.com> | 2024-12-09 17:58:28 +0000 |
|---|---|---|
| committer | wn_ <invalid@email.com> | 2024-12-09 17:58:28 +0000 |
| commit | f6a8facfd4bfc40025c069eebc37094d826aff58 (patch) | |
| tree | 871aab0d8adafe736d954cae1783c260699c0ec3 /vendor/spomky-labs/otphp/src/InternalClock.php | |
| parent | cd2c10f9f71409df24fc74c1bbd7d5ddbf48d991 (diff) | |
Bump 'spomky-labs/otphp' to 11.3.x.
This is mainly for PHP 8.4 compatibility.
Diffstat (limited to 'vendor/spomky-labs/otphp/src/InternalClock.php')
| -rw-r--r-- | vendor/spomky-labs/otphp/src/InternalClock.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/vendor/spomky-labs/otphp/src/InternalClock.php b/vendor/spomky-labs/otphp/src/InternalClock.php new file mode 100644 index 000000000..8be469318 --- /dev/null +++ b/vendor/spomky-labs/otphp/src/InternalClock.php @@ -0,0 +1,19 @@ +<?php + +declare(strict_types=1); + +namespace OTPHP; + +use DateTimeImmutable; +use Psr\Clock\ClockInterface; + +/** + * @internal + */ +final class InternalClock implements ClockInterface +{ + public function now(): DateTimeImmutable + { + return new DateTimeImmutable(); + } +} |