From 797af9b4726714c130dea947054e579ff346a218 Mon Sep 17 00:00:00 2001 From: Yurij Finiv Date: Tue, 18 Apr 2023 21:37:13 +0300 Subject: [PATCH 1/5] Update composer.json --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index e57c3b8..121b466 100644 --- a/composer.json +++ b/composer.json @@ -20,9 +20,9 @@ }, "require-dev": { "ext-intl": "*", - "laravel/framework": "^9.0", + "laravel/framework": "^9.0|^10.0", "mockery/mockery": "^1.4.4", - "orchestra/testbench-core": "^7.0", + "orchestra/testbench-core": "^7.0|^8.0", "phpunit/phpunit": "^9.5.10" }, "autoload": { From 06bf042bd2954f8da098990218df585ff5eb358d Mon Sep 17 00:00:00 2001 From: Yurij Finiv Date: Tue, 18 Apr 2023 21:51:22 +0300 Subject: [PATCH 2/5] Fix warning jsonSerialize in Locale.php --- src/Entities/Locale.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Entities/Locale.php b/src/Entities/Locale.php index 36f776f..9f699a2 100644 --- a/src/Entities/Locale.php +++ b/src/Entities/Locale.php @@ -334,7 +334,7 @@ public function toJson($options = 0) * * @return array */ - public function jsonSerialize() + public function jsonSerialize(): mixed { return $this->toArray(); } From 304664eb9450ffb043d4f0d3f9c633ab3dfdfbd6 Mon Sep 17 00:00:00 2001 From: Yurij Finiv Date: Tue, 18 Apr 2023 22:28:49 +0300 Subject: [PATCH 3/5] Add support laravel 10 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 121b466..2537a9f 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ "require": { "php": "^8.0", "ext-json": "*", - "arcanedev/support": "^9.0" + "arcanedev/support": "^9.0|^10.0" }, "require-dev": { "ext-intl": "*", From f765475bd7a7acce49f00c6496c8bbd13e685d8a Mon Sep 17 00:00:00 2001 From: Yurij Finiv Date: Tue, 18 Apr 2023 23:09:47 +0300 Subject: [PATCH 4/5] Update test Delete test for php 8.0 add 8.2 --- .github/workflows/run-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 66c8486..09024eb 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -9,7 +9,7 @@ jobs: strategy: fail-fast: true matrix: - php: [8.0, 8.1] + php: [8.1, 8.2] dependency-version: [prefer-lowest, prefer-stable] name: PHP ${{ matrix.php }} - ${{ matrix.dependency-version }} From 4e9921c46131ba7a2d6cb8638d681d4b0530da8c Mon Sep 17 00:00:00 2001 From: Yurij Finiv Date: Tue, 18 Apr 2023 23:10:49 +0300 Subject: [PATCH 5/5] Minimum php 8.1 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 2537a9f..8d2d0e2 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ "type": "library", "license": "MIT", "require": { - "php": "^8.0", + "php": "^8.1", "ext-json": "*", "arcanedev/support": "^9.0|^10.0" },