mirror of
https://github.com/beste/clock.git
synced 2026-08-17 17:47:13 +00:00
Replace stella-maris/clock with psr/clock
This commit is contained in:
@@ -6,6 +6,7 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- '1.x'
|
- '1.x'
|
||||||
- '2.x'
|
- '2.x'
|
||||||
|
- '3.x'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## Unreleased
|
||||||
|
This release replaces `stella-maris/clock` with `psr/clock`.
|
||||||
|
|
||||||
## 2.3.1 - 2022-11-25
|
## 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`
|
This release reverts the change to implement `psr/clock` directly, to not break dependents who rely on `stella-maris/clock`
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@
|
|||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^8.0",
|
"php": "^8.0",
|
||||||
"stella-maris/clock": "^0.1.6"
|
"psr/clock": "^1.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpstan/extension-installer": "^1.2",
|
"phpstan/extension-installer": "^1.2",
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace Beste;
|
namespace Beste;
|
||||||
|
|
||||||
use StellaMaris\Clock\ClockInterface;
|
use Psr\Clock\ClockInterface;
|
||||||
|
|
||||||
interface Clock extends ClockInterface
|
interface Clock extends ClockInterface
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ namespace Beste\Clock;
|
|||||||
use Beste\Clock;
|
use Beste\Clock;
|
||||||
use DateTimeImmutable;
|
use DateTimeImmutable;
|
||||||
use DateTimeZone;
|
use DateTimeZone;
|
||||||
use StellaMaris\Clock\ClockInterface;
|
use Psr\Clock\ClockInterface;
|
||||||
|
|
||||||
final class FrozenClock implements Clock
|
final class FrozenClock implements Clock
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ namespace Beste\Clock;
|
|||||||
|
|
||||||
use Beste\Clock;
|
use Beste\Clock;
|
||||||
use DateTimeImmutable;
|
use DateTimeImmutable;
|
||||||
use StellaMaris\Clock\ClockInterface;
|
use Psr\Clock\ClockInterface;
|
||||||
|
|
||||||
final class MinuteClock implements Clock
|
final class MinuteClock implements Clock
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ namespace Beste\Clock;
|
|||||||
|
|
||||||
use Beste\Clock;
|
use Beste\Clock;
|
||||||
use DateTimeImmutable;
|
use DateTimeImmutable;
|
||||||
use StellaMaris\Clock\ClockInterface;
|
use Psr\Clock\ClockInterface;
|
||||||
|
|
||||||
final class WrappingClock implements Clock
|
final class WrappingClock implements Clock
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ namespace Beste\Clock\Tests;
|
|||||||
use Beste\Clock\FrozenClock;
|
use Beste\Clock\FrozenClock;
|
||||||
use DateTimeImmutable;
|
use DateTimeImmutable;
|
||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
use StellaMaris\Clock\ClockInterface;
|
use Psr\Clock\ClockInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ namespace Beste\Clock\Tests;
|
|||||||
use Beste\Clock\MinuteClock;
|
use Beste\Clock\MinuteClock;
|
||||||
use DateTimeImmutable;
|
use DateTimeImmutable;
|
||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
use StellaMaris\Clock\ClockInterface;
|
use Psr\Clock\ClockInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
|
|||||||
Reference in New Issue
Block a user