diff --git a/.github/workflows/coding-standards.yml b/.github/workflows/coding-standards.yml index 6ae6269..3e525a5 100644 --- a/.github/workflows/coding-standards.yml +++ b/.github/workflows/coding-standards.yml @@ -22,6 +22,7 @@ jobs: - "7.4" - "8.0" - "8.1" + - "8.2" operating-system: - "ubuntu-latest" diff --git a/.github/workflows/mutation-tests.yml b/.github/workflows/mutation-tests.yml index 9e7bd65..edc13a3 100644 --- a/.github/workflows/mutation-tests.yml +++ b/.github/workflows/mutation-tests.yml @@ -22,6 +22,7 @@ jobs: - "7.4" - "8.0" - "8.1" + - "8.2" operating-system: - "ubuntu-latest" diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index be2b672..3cd778c 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -22,6 +22,7 @@ jobs: - "7.4" - "8.0" - "8.1" + - "8.2" operating-system: - "ubuntu-latest" diff --git a/.github/workflows/psalm.yml b/.github/workflows/psalm.yml index d9adca4..e7909be 100644 --- a/.github/workflows/psalm.yml +++ b/.github/workflows/psalm.yml @@ -22,6 +22,7 @@ jobs: - "7.4" - "8.0" - "8.1" + - "8.2" operating-system: - "ubuntu-latest" diff --git a/composer.json b/composer.json index a1c9574..3872398 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ } ], "require": { - "php": "^7.4|^8.0|^8.1" + "php": "^7.4|^8.0|^8.1|^8.2" }, "require-dev": { "icanhazstring/composer-unused": "^0.8", @@ -26,7 +26,7 @@ "phpunit/phpunit": "^8.0 || ^9.0", "roave/infection-static-analysis-plugin": "^1.18", "squizlabs/php_codesniffer": "^3.4", - "symfony/var-dumper": "^4.2 || ^5.0", + "symfony/var-dumper": "^4.2 || ^5.0 || ^6.0", "vimeo/psalm": "^4.4" }, "autoload": { diff --git a/src/Write/Event/FeatureWasCreated.php b/src/Write/Event/FeatureWasCreated.php index ab93546..bef9125 100644 --- a/src/Write/Event/FeatureWasCreated.php +++ b/src/Write/Event/FeatureWasCreated.php @@ -5,14 +5,14 @@ namespace Pheature\Core\Toggle\Write\Event; use Pheature\Core\Toggle\Write\FeatureId; -use DatetimeImmutable; +use DateTimeImmutable; final class FeatureWasCreated { private string $featureId; - private DatetimeImmutable $occurredAt; + private DateTimeImmutable $occurredAt; - public function __construct(string $featureId, DatetimeImmutable $occurredAt) + public function __construct(string $featureId, DateTimeImmutable $occurredAt) { $this->featureId = $featureId; $this->occurredAt = $occurredAt; @@ -20,7 +20,7 @@ public function __construct(string $featureId, DatetimeImmutable $occurredAt) public static function occur(string $featureId): self { - return new self($featureId, new DatetimeImmutable()); + return new self($featureId, new DateTimeImmutable()); } public function featureId(): FeatureId @@ -28,7 +28,7 @@ public function featureId(): FeatureId return FeatureId::fromString($this->featureId); } - public function occurredAt(): DatetimeImmutable + public function occurredAt(): DateTimeImmutable { return $this->occurredAt; } diff --git a/src/Write/Event/FeatureWasDisabled.php b/src/Write/Event/FeatureWasDisabled.php index d9fa693..a335c4e 100644 --- a/src/Write/Event/FeatureWasDisabled.php +++ b/src/Write/Event/FeatureWasDisabled.php @@ -5,14 +5,14 @@ namespace Pheature\Core\Toggle\Write\Event; use Pheature\Core\Toggle\Write\FeatureId; -use DatetimeImmutable; +use DateTimeImmutable; final class FeatureWasDisabled { private string $featureId; - private DatetimeImmutable $occurredAt; + private DateTimeImmutable $occurredAt; - public function __construct(string $featureId, DatetimeImmutable $occurredAt) + public function __construct(string $featureId, DateTimeImmutable $occurredAt) { $this->featureId = $featureId; $this->occurredAt = $occurredAt; @@ -20,7 +20,7 @@ public function __construct(string $featureId, DatetimeImmutable $occurredAt) public static function occur(string $featureId): self { - return new self($featureId, new DatetimeImmutable()); + return new self($featureId, new DateTimeImmutable()); } public function featureId(): FeatureId @@ -28,7 +28,7 @@ public function featureId(): FeatureId return FeatureId::fromString($this->featureId); } - public function occurredAt(): DatetimeImmutable + public function occurredAt(): DateTimeImmutable { return $this->occurredAt; } diff --git a/src/Write/Event/FeatureWasEnabled.php b/src/Write/Event/FeatureWasEnabled.php index edab2d1..c58ce30 100644 --- a/src/Write/Event/FeatureWasEnabled.php +++ b/src/Write/Event/FeatureWasEnabled.php @@ -5,14 +5,14 @@ namespace Pheature\Core\Toggle\Write\Event; use Pheature\Core\Toggle\Write\FeatureId; -use DatetimeImmutable; +use DateTimeImmutable; final class FeatureWasEnabled { private string $featureId; - private DatetimeImmutable $occurredAt; + private DateTimeImmutable $occurredAt; - public function __construct(string $featureId, DatetimeImmutable $occurredAt) + public function __construct(string $featureId, DateTimeImmutable $occurredAt) { $this->featureId = $featureId; $this->occurredAt = $occurredAt; @@ -20,7 +20,7 @@ public function __construct(string $featureId, DatetimeImmutable $occurredAt) public static function occur(string $featureId): self { - return new self($featureId, new DatetimeImmutable()); + return new self($featureId, new DateTimeImmutable()); } public function featureId(): FeatureId @@ -28,7 +28,7 @@ public function featureId(): FeatureId return FeatureId::fromString($this->featureId); } - public function occurredAt(): DatetimeImmutable + public function occurredAt(): DateTimeImmutable { return $this->occurredAt; } diff --git a/src/Write/Event/StrategyWasAdded.php b/src/Write/Event/StrategyWasAdded.php index f7c947a..085af7e 100644 --- a/src/Write/Event/StrategyWasAdded.php +++ b/src/Write/Event/StrategyWasAdded.php @@ -5,7 +5,7 @@ namespace Pheature\Core\Toggle\Write\Event; use Pheature\Core\Toggle\Write\FeatureId; -use DatetimeImmutable; +use DateTimeImmutable; use Pheature\Core\Toggle\Write\Payload; use Pheature\Core\Toggle\Write\Segment; use Pheature\Core\Toggle\Write\SegmentId; @@ -19,7 +19,7 @@ final class StrategyWasAdded { private string $featureId; - private DatetimeImmutable $occurredAt; + private DateTimeImmutable $occurredAt; private string $strategyId; private string $strategyType; /** @var WriteSegment[] */ @@ -31,7 +31,7 @@ public function __construct( string $strategyId, string $strategyType, array $segments, - DatetimeImmutable $occurredAt + DateTimeImmutable $occurredAt ) { $this->featureId = $featureId; $this->strategyId = $strategyId; @@ -43,7 +43,7 @@ public function __construct( /** @param WriteSegment[] $segments */ public static function occur(string $featureId, string $strategyId, string $strategyType, array $segments): self { - return new self($featureId, $strategyId, $strategyType, $segments, new DatetimeImmutable()); + return new self($featureId, $strategyId, $strategyType, $segments, new DateTimeImmutable()); } public function featureId(): FeatureId @@ -61,7 +61,7 @@ public function strategyType(): StrategyType return StrategyType::fromString($this->strategyType); } - public function occurredAt(): DatetimeImmutable + public function occurredAt(): DateTimeImmutable { return $this->occurredAt; }