Skip to content

Commit

Permalink
Replace stella-maris/clock with psr/clock
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromegamez committed Nov 26, 2022
1 parent cf2cc16 commit ebd491d
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
branches:
- '1.x'
- '2.x'
- '3.x'

jobs:
tests:
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# CHANGELOG

## Unreleased
This release replaces `stella-maris/clock` with `psr/clock`.

## 2.3.1 - 2022-11-25
This release reverts the change to implement `psr/clock` directly, to not break dependents who rely on `stella-maris/clock`

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
],
"require": {
"php": "^8.0",
"stella-maris/clock": "^0.1.6"
"psr/clock": "^1.0"
},
"require-dev": {
"phpstan/extension-installer": "^1.2",
Expand Down
2 changes: 1 addition & 1 deletion src/Clock.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Beste;

use StellaMaris\Clock\ClockInterface;
use Psr\Clock\ClockInterface;

interface Clock extends ClockInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Clock/FrozenClock.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Beste\Clock;
use DateTimeImmutable;
use DateTimeZone;
use StellaMaris\Clock\ClockInterface;
use Psr\Clock\ClockInterface;

final class FrozenClock implements Clock
{
Expand Down
2 changes: 1 addition & 1 deletion src/Clock/MinuteClock.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Beste\Clock;
use DateTimeImmutable;
use StellaMaris\Clock\ClockInterface;
use Psr\Clock\ClockInterface;

final class MinuteClock implements Clock
{
Expand Down
2 changes: 1 addition & 1 deletion src/Clock/WrappingClock.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Beste\Clock;
use DateTimeImmutable;
use StellaMaris\Clock\ClockInterface;
use Psr\Clock\ClockInterface;

final class WrappingClock implements Clock
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Clock/FrozenClockTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Beste\Clock\FrozenClock;
use DateTimeImmutable;
use PHPUnit\Framework\TestCase;
use StellaMaris\Clock\ClockInterface;
use Psr\Clock\ClockInterface;

/**
* @internal
Expand Down
2 changes: 1 addition & 1 deletion tests/Clock/MinuteClockTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Beste\Clock\MinuteClock;
use DateTimeImmutable;
use PHPUnit\Framework\TestCase;
use StellaMaris\Clock\ClockInterface;
use Psr\Clock\ClockInterface;

/**
* @internal
Expand Down

0 comments on commit ebd491d

Please sign in to comment.