Skip to content

Commit fb533e0

Browse files
authored
Merge pull request #506 from heiglandreas/ImplementCLockInterface
Implement forward compatible Clock-Interface
2 parents c6dc658 + 6094408 commit fb533e0

File tree

3 files changed

+54
-4
lines changed

3 files changed

+54
-4
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
}
1111
],
1212
"require": {
13-
"php": "^8.0"
13+
"php": "^8.0",
14+
"stella-maris/clock": "^0.1.4"
1415
},
1516
"require-dev": {
1617
"infection/infection": "^0.26",

composer.lock

Lines changed: 50 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Clock.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
namespace Lcobucci\Clock;
55

66
use DateTimeImmutable;
7+
use StellaMaris\Clock\ClockInterface;
78

8-
interface Clock
9+
interface Clock extends ClockInterface
910
{
1011
public function now(): DateTimeImmutable;
1112
}

0 commit comments

Comments
 (0)