mirror of
https://github.com/beste/clock.git
synced 2026-10-17 19:27:35 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7004b55fcd | ||
|
|
ebd491dc6e | ||
|
|
cf2cc16e66 | ||
|
|
6ee3f318f8 | ||
|
|
2ba952cc73 | ||
|
|
2861280adc | ||
|
|
a5e62affe0 | ||
|
|
5acec1192d | ||
|
|
fd2e55f899 |
@@ -6,6 +6,7 @@ on:
|
||||
branches:
|
||||
- '1.x'
|
||||
- '2.x'
|
||||
- '3.x'
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
@@ -15,11 +16,9 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
php:
|
||||
- "8.0"
|
||||
- "8.1"
|
||||
- "8.2"
|
||||
dependencies:
|
||||
- "lowest"
|
||||
- "highest"
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@@ -33,10 +32,7 @@ jobs:
|
||||
env:
|
||||
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- uses: "ramsey/composer-install@v1"
|
||||
with:
|
||||
dependency-versions: "${{ matrix.dependencies }}"
|
||||
composer-options: "${{ matrix.composer-options }}"
|
||||
- uses: "ramsey/composer-install@v2"
|
||||
|
||||
- name: Setup problem matchers for PHP
|
||||
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 3.0.0 - 2022-11-26
|
||||
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`
|
||||
|
||||
## 2.3.0 - 2022-11-25
|
||||
This release re-introduces support for PHP ^8.0 and implements the freshly released `psr/clock` (PSR-20) directly.
|
||||
|
||||
## 2.2.0 - 2022-11-04
|
||||
This release drops support for PHP <8.1.
|
||||
|
||||
|
||||
+2
-2
@@ -11,8 +11,8 @@
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": "~8.1.0 || ~8.2.0",
|
||||
"stella-maris/clock": "^0.1.6"
|
||||
"php": "^8.0",
|
||||
"psr/clock": "^1.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpstan/extension-installer": "^1.2",
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace Beste;
|
||||
|
||||
use StellaMaris\Clock\ClockInterface;
|
||||
use Psr\Clock\ClockInterface;
|
||||
|
||||
interface Clock extends ClockInterface
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace Beste\Clock;
|
||||
use Beste\Clock;
|
||||
use DateTimeImmutable;
|
||||
use DateTimeZone;
|
||||
use StellaMaris\Clock\ClockInterface;
|
||||
use Psr\Clock\ClockInterface;
|
||||
|
||||
final class FrozenClock implements Clock
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace Beste\Clock;
|
||||
|
||||
use Beste\Clock;
|
||||
use DateTimeImmutable;
|
||||
use StellaMaris\Clock\ClockInterface;
|
||||
use Psr\Clock\ClockInterface;
|
||||
|
||||
final class MinuteClock implements Clock
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace Beste\Clock;
|
||||
|
||||
use Beste\Clock;
|
||||
use DateTimeImmutable;
|
||||
use StellaMaris\Clock\ClockInterface;
|
||||
use Psr\Clock\ClockInterface;
|
||||
|
||||
final class WrappingClock implements Clock
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace Beste\Clock\Tests;
|
||||
use Beste\Clock\FrozenClock;
|
||||
use DateTimeImmutable;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use StellaMaris\Clock\ClockInterface;
|
||||
use Psr\Clock\ClockInterface;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace Beste\Clock\Tests;
|
||||
use Beste\Clock\MinuteClock;
|
||||
use DateTimeImmutable;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use StellaMaris\Clock\ClockInterface;
|
||||
use Psr\Clock\ClockInterface;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
|
||||
Reference in New Issue
Block a user