Skip to content

Commit

Permalink
Merge pull request #506 from heiglandreas/ImplementCLockInterface
Browse files Browse the repository at this point in the history
Implement forward compatible Clock-Interface
  • Loading branch information
lcobucci committed Apr 19, 2022
2 parents c6dc658 + 6094408 commit fb533e0
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 4 deletions.
3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -10,7 +10,8 @@
}
],
"require": {
"php": "^8.0"
"php": "^8.0",
"stella-maris/clock": "^0.1.4"
},
"require-dev": {
"infection/infection": "^0.26",
Expand Down
52 changes: 50 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/Clock.php
Expand Up @@ -4,8 +4,9 @@
namespace Lcobucci\Clock;

use DateTimeImmutable;
use StellaMaris\Clock\ClockInterface;

interface Clock
interface Clock extends ClockInterface
{
public function now(): DateTimeImmutable;
}

0 comments on commit fb533e0

Please sign in to comment.