diff --git a/.github/workflows/ci_build.yml b/.github/workflows/ci_build.yml index a07daf14..6a4336eb 100644 --- a/.github/workflows/ci_build.yml +++ b/.github/workflows/ci_build.yml @@ -13,7 +13,7 @@ jobs: strategy: fail-fast: false matrix: - php-versions: ['8.1', '8.2', '8.3', '8.4'] + php-versions: ['8.2', '8.3', '8.4'] steps: - name: Setup PHP Action uses: shivammathur/setup-php@v2 diff --git a/README.md b/README.md index 0db8c34a..1c3686ee 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,9 @@ ErrorHeroModule [![PHPStan](https://img.shields.io/badge/style-level%20max-brightgreen.svg?style=flat-square&label=phpstan)](https://github.com/phpstan/phpstan) [![Downloads](https://poser.pugx.org/samsonasik/error-hero-module/downloads)](https://packagist.org/packages/samsonasik/error-hero-module) -> This is README for version ^5.0 which only support Laminas Mvc version 3 and Mezzio version 3 with php ^8.1. +> This is README for version ^6.0 which only support Laminas Mvc version 3 and Mezzio version 3 with php ^8.2. + +> For version ^5.0, you can read at [version 5 readme](https://github.com/samsonasik/ErrorHeroModule/tree/5.x.x) which only support Laminas Mvc version 3 and Mezzio version 3 with php ^8.1. > For version ^4.0, you can read at [version 4 readme](https://github.com/samsonasik/ErrorHeroModule/tree/4.x.x) which only support Laminas Mvc version 3 and Mezzio version 3 with php ^8.0. diff --git a/composer.json b/composer.json index f56424b5..69e50695 100644 --- a/composer.json +++ b/composer.json @@ -35,7 +35,7 @@ } ], "require": { - "php": "^8.1", + "php": "^8.2", "laminas/laminas-db": "^2.20.0", "laminas/laminas-diactoros": "^2.26", "laminas/laminas-log": "^2.17.1", diff --git a/src/Handler/Writer/Checker/Db.php b/src/Handler/Writer/Checker/Db.php index 456661b6..722c0941 100644 --- a/src/Handler/Writer/Checker/Db.php +++ b/src/Handler/Writer/Checker/Db.php @@ -12,7 +12,7 @@ use function date; use function strtotime; -final class Db +final readonly class Db { /** @var string */ private const OPTIONS = 'options'; @@ -24,9 +24,9 @@ final class Db private const EXTRA = 'extra'; public function __construct( - private readonly DbWriter $dbWriter, - private readonly array $configLoggingSettings, - private readonly array $logWritersConfig + private DbWriter $dbWriter, + private array $configLoggingSettings, + private array $logWritersConfig ) { }