From 4495ad7487bb04d4f4f364386394f368b08815e5 Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Wed, 13 Mar 2024 11:54:44 +0300 Subject: [PATCH] Added Laravel 11 support --- .github/workflows/phpunit.yml | 27 ++++++++++++++++++++++++--- composer.json | 14 +++++++------- config/pretty-routes.php | 8 +++----- phpunit.php | 8 +++----- phpunit.xml | 12 +++++------- resources/lang/en/info.php | 8 +++----- resources/lang/es/info.php | 8 +++----- resources/lang/fr/info.php | 8 +++----- resources/lang/ru/info.php | 8 +++----- resources/lang/tr/info.php | 8 +++----- routes/laravel.php | 8 +++----- routes/lumen.php | 8 +++----- src/Facades/Cache.php | 8 +++----- src/Facades/Trans.php | 8 +++----- src/Http/PrettyRoutesController.php | 8 +++----- src/ServiceProvider.php | 8 +++----- src/Support/Cache.php | 8 +++----- src/Support/Config.php | 8 +++----- src/Support/Trans.php | 8 +++----- tests/AjaxTest.php | 8 +++----- tests/Localizations/EnTest.php | 8 +++----- tests/Localizations/FrTest.php | 8 +++----- tests/Localizations/RuTest.php | 8 +++----- tests/TestCase.php | 8 +++----- tests/ViewTest.php | 8 +++----- 25 files changed, 102 insertions(+), 127 deletions(-) diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index 2858de6..22c772c 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -9,8 +9,8 @@ jobs: strategy: fail-fast: true matrix: - php: [ "7.3", "7.4", "8.0", "8.1", "8.2" ] - laravel: [ "6.0", "7.0", "8.0", "9.0", "10.0" ] + php: [ "7.3", "7.4", "8.0", "8.1", "8.2", "8.3" ] + laravel: [ "6.0", "7.0", "8.0", "9.0", "10.0", "11.0" ] exclude: - laravel: "6.0" php: "8.1" @@ -18,18 +18,27 @@ jobs: - laravel: "6.0" php: "8.2" + - laravel: "6.0" + php: "8.3" + - laravel: "7.0" php: "8.1" - laravel: "7.0" php: "8.2" + - laravel: "7.0" + php: "8.3" + - laravel: "9.0" php: "7.3" - laravel: "9.0" php: "7.4" + - laravel: "9.0" + php: "8.3" + - laravel: "10.0" php: "7.3" @@ -39,6 +48,18 @@ jobs: - laravel: "10.0" php: "8.0" + - laravel: "11.0" + php: "7.3" + + - laravel: "11.0" + php: "7.4" + + - laravel: "11.0" + php: "8.0" + + - laravel: "11.0" + php: "8.1" + name: PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }} steps: @@ -50,7 +71,7 @@ jobs: with: php-version: ${{ matrix.php }} extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv - coverage: none + coverage: xdebug - name: Install dependencies run: composer require --dev laravel/framework:^${{ matrix.laravel }} diff --git a/composer.json b/composer.json index 4764bf4..fe80a15 100644 --- a/composer.json +++ b/composer.json @@ -48,16 +48,16 @@ "dragon-code/laravel-routes-core": "^4.1 || ^5.0", "dragon-code/laravel-support": "^3.3", "dragon-code/support": "^5.6 || ^6.1", - "illuminate/contracts": ">=6.0 <11.0", - "illuminate/http": ">=6.0 <11.0", - "illuminate/routing": ">=6.0 <11.0", - "illuminate/support": ">=6.0 <11.0", - "illuminate/view": ">=6.0 <11.0" + "illuminate/contracts": ">=6.0 <12.0", + "illuminate/http": ">=6.0 <12.0", + "illuminate/routing": ">=6.0 <12.0", + "illuminate/support": ">=6.0 <12.0", + "illuminate/view": ">=6.0 <12.0" }, "require-dev": { "mockery/mockery": "^1.0", - "orchestra/testbench": ">=4.0 <9.0", - "phpunit/phpunit": "^8.0 || ^9.6" + "orchestra/testbench": ">=4.0 <10.0", + "phpunit/phpunit": "^8.0 || ^9.6 || ^10.0" }, "conflict": { "garygreen/pretty-routes": "*" diff --git a/config/pretty-routes.php b/config/pretty-routes.php index 5af0380..119d648 100644 --- a/config/pretty-routes.php +++ b/config/pretty-routes.php @@ -1,14 +1,12 @@ - * - * @copyright 2021 Andrey Helldar - * + * @author Andrey Helldar + * @copyright 2024 Andrey Helldar * @license MIT * * @see https://github.com/TheDragonCode/pretty-routes diff --git a/phpunit.php b/phpunit.php index 8d878dd..f880b60 100644 --- a/phpunit.php +++ b/phpunit.php @@ -1,14 +1,12 @@ - * - * @copyright 2021 Andrey Helldar - * + * @author Andrey Helldar + * @copyright 2024 Andrey Helldar * @license MIT * * @see https://github.com/TheDragonCode/pretty-routes diff --git a/phpunit.xml b/phpunit.xml index 45254cc..5f68280 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,14 +1,12 @@ -