Skip to content

Commit

Permalink
feat(clock): psr-20 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
tntrex committed May 13, 2023
1 parent a54b6ce commit 76281ed
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"nikic/php-parser": "^4.10",
"php-http/discovery": "^1.11",
"phpoption/phpoption": "^1.7",
"psr/clock": "^1.0",
"psr/container": "^1.1|^2.0",
"psr/http-message": "^1.0",
"symfony/console": "^5.2|^6.0",
Expand Down
8 changes: 8 additions & 0 deletions pkg/clock/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ All notable changes to `getwarp/clock` will be documented in this file.

Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles.

## [3.1.3] - 2023-05-13

`getwarp/clock` is now PSR-20 compatible.

### Added

- `\Warp\Clock\ClockInterface` now extends `\Psr\Clock\ClockInterface`.

## [3.1.0] - 2022-08-22

Bump up version.
Expand Down
8 changes: 6 additions & 2 deletions pkg/clock/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@
],
"require": {
"php": "^7.4|^8.0",
"ext-json": "*"
"ext-json": "*",
"psr/clock": "^1.0"
},
"require-dev": {},
"provide": {
"psr/clock-implementation": "^1.0"
},
"require-dev": [],
"autoload": {
"psr-4": {
"Warp\\Clock\\": "src"
Expand Down
2 changes: 1 addition & 1 deletion pkg/clock/src/ClockInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Warp\Clock;

interface ClockInterface
interface ClockInterface extends \Psr\Clock\ClockInterface
{
public function now(): DateTimeImmutableValue;
}

0 comments on commit 76281ed

Please sign in to comment.