From 7bbc3b9de4830cfebe96e921e0743abafa7d82a5 Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Wed, 13 Mar 2024 11:33:00 +0300 Subject: [PATCH 1/2] Added Laravel 11 support --- .github/workflows/phpunit.yml | 24 ++++++++++++++++--- composer.json | 14 +++++------ config/last_modified.php | 2 +- phpunit.xml | 6 ++--- src/Concerns/Cacheable.php | 15 ++++++++++++ src/Concerns/Urlable.php | 2 +- src/Constants/Field.php | 15 ++++++++++++ src/Facades/Config.php | 2 +- src/Facades/Url.php | 2 +- src/Middlewares/CheckLastModified.php | 2 +- src/Resources/Item.php | 2 +- src/ServiceProvider.php | 2 +- src/Services/Checker.php | 2 +- src/Services/LastModified.php | 2 +- src/Services/Processors/Processor.php | 2 +- src/Services/Processors/ToDelete.php | 2 +- src/Services/Processors/ToUpdate.php | 2 +- src/Support/Config.php | 2 +- src/Support/Url.php | 2 +- tests/Concerns/Asserts.php | 15 ++++++++++++ tests/Concerns/Fakeable.php | 2 +- tests/Concerns/Requests.php | 2 +- tests/Concerns/Urlable.php | 2 +- tests/TestCase.php | 2 +- .../Middlewares/CheckLastModifiedTest.php | 2 +- tests/WhenDisabled/Resources/ItemTest.php | 2 +- tests/WhenDisabled/Services/CheckerTest.php | 2 +- .../Services/LastModified/ToDeleteTest.php | 2 +- .../Services/LastModified/ToUpdateTest.php | 2 +- .../Services/Processors/ToDeleteTest.php | 2 +- .../Services/Processors/ToUpdateTest.php | 2 +- tests/WhenDisabled/Support/ConfigTest.php | 2 +- tests/WhenDisabled/Support/UrlTest.php | 2 +- tests/WhenDisabled/TestCase.php | 2 +- .../Middlewares/CheckLastModifiedTest.php | 2 +- tests/WhenEnabled/Resources/ItemTest.php | 2 +- tests/WhenEnabled/Services/CheckerTest.php | 2 +- .../Services/LastModified/ToDeleteTest.php | 2 +- .../Services/LastModified/ToUpdateTest.php | 2 +- .../Services/Processors/ToDeleteTest.php | 2 +- .../Services/Processors/ToUpdateTest.php | 2 +- tests/WhenEnabled/Support/ConfigTest.php | 2 +- tests/WhenEnabled/Support/UrlTest.php | 2 +- tests/WhenEnabled/TestCase.php | 2 +- tests/fixtures/Models/Custom.php | 2 +- .../Providers/TestServiceProvider.php | 2 +- .../2021_11_11_233030_create_custom_table.php | 2 +- 47 files changed, 117 insertions(+), 54 deletions(-) diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index 63ccaec..ecb85e0 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -9,8 +9,8 @@ jobs: strategy: fail-fast: true matrix: - php: [ "8.0", "8.1", "8.2" ] - laravel: [ "6.0", "7.0", "8.0", "9.0", "10.0" ] + php: [ "8.0", "8.1", "8.2", "8.3" ] + laravel: [ "6.0", "7.0", "8.0", "9.0", "10.0", "11.0" ] doctrine: [ "2.0", "3.0" ] exclude: - laravel: "6.0" @@ -22,6 +22,9 @@ jobs: - laravel: "6.0" php: "8.2" + - laravel: "6.0" + php: "8.3" + - laravel: "7.0" doctrine: "3.0" @@ -31,18 +34,33 @@ jobs: - laravel: "7.0" php: "8.2" + - laravel: "7.0" + php: "8.3" + - laravel: "8.0" doctrine: "2.0" - laravel: "8.0" php: "8.2" + - laravel: "8.0" + php: "8.3" + - laravel: "10.0" doctrine: "2.0" - laravel: "10.0" php: "8.0" + - laravel: "11.0" + doctrine: "2.0" + + - laravel: "11.0" + php: "8.0" + + - laravel: "11.0" + php: "8.1" + name: PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }}, Doctrine ${{ matrix.doctrine }} services: @@ -67,7 +85,7 @@ jobs: with: php-version: ${{ matrix.php }} extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd, redis, pdo_mysql - coverage: none + coverage: xdebug - name: Install dependencies run: composer require --dev laravel/framework:^${{ matrix.laravel }} doctrine/dbal:^${{ matrix.doctrine }} diff --git a/composer.json b/composer.json index 2e7524d..65570b9 100644 --- a/composer.json +++ b/composer.json @@ -45,18 +45,18 @@ "dragon-code/simple-dto": "^2.3", "dragon-code/support": "^6.0", "fig/http-message-util": "^1.1", - "illuminate/console": ">=6.0 <11.0", - "illuminate/database": ">=6.0 <11.0", - "illuminate/support": ">=6.0 <11.0", + "illuminate/console": ">=6.0 <12.0", + "illuminate/database": ">=6.0 <12.0", + "illuminate/support": ">=6.0 <12.0", "lmc/http-constants": "^1.2", - "nesbot/carbon": "^1.20 || ^2.0", - "psr/http-message": "^1.0.1" + "nesbot/carbon": "^1.20 || ^2.0 || ^3.0", + "psr/http-message": "^1.0.1 || ^2.0" }, "require-dev": { "ext-json": "*", "mockery/mockery": "^1.3.1", - "orchestra/testbench": ">=4.0 <9.0", - "phpunit/phpunit": "^9.6" + "orchestra/testbench": ">=4.0 <10.0", + "phpunit/phpunit": "^9.6 || ^10.0" }, "conflict": { "andrey-helldar/last-modified": "*" diff --git a/config/last_modified.php b/config/last_modified.php index 2ae993f..a5cf109 100644 --- a/config/last_modified.php +++ b/config/last_modified.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/phpunit.xml b/phpunit.xml index 2e8ba92..b4b260e 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -8,7 +8,7 @@ ~ ~ @author Andrey Helldar ~ - ~ @copyright 2021 Andrey Helldar + ~ @copyright 2024 Andrey Helldar ~ ~ @license MIT ~ @@ -23,8 +23,8 @@ bootstrap="vendor/autoload.php" colors="true" convertErrorsToExceptions="true" - convertNoticesToExceptions="true" - convertWarningsToExceptions="true" + convertNoticesToExceptions="false" + convertWarningsToExceptions="false" processIsolation="false" stopOnError="false" stopOnFailure="false" diff --git a/src/Concerns/Cacheable.php b/src/Concerns/Cacheable.php index 38b9254..af171c0 100644 --- a/src/Concerns/Cacheable.php +++ b/src/Concerns/Cacheable.php @@ -1,5 +1,20 @@ + * + * @copyright 2024 Andrey Helldar + * + * @license MIT + * + * @see https://github.com/TheDragonCode/last-modified + */ + declare(strict_types=1); namespace DragonCode\LastModified\Concerns; diff --git a/src/Concerns/Urlable.php b/src/Concerns/Urlable.php index f61011d..af45ac5 100644 --- a/src/Concerns/Urlable.php +++ b/src/Concerns/Urlable.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/src/Constants/Field.php b/src/Constants/Field.php index ab2966a..5f04dcc 100644 --- a/src/Constants/Field.php +++ b/src/Constants/Field.php @@ -1,5 +1,20 @@ + * + * @copyright 2024 Andrey Helldar + * + * @license MIT + * + * @see https://github.com/TheDragonCode/last-modified + */ + namespace DragonCode\LastModified\Constants; class Field diff --git a/src/Facades/Config.php b/src/Facades/Config.php index 3d1b096..8e0a7ac 100644 --- a/src/Facades/Config.php +++ b/src/Facades/Config.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/src/Facades/Url.php b/src/Facades/Url.php index 7ae0f6e..ffbacc7 100644 --- a/src/Facades/Url.php +++ b/src/Facades/Url.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/src/Middlewares/CheckLastModified.php b/src/Middlewares/CheckLastModified.php index 43ca2e3..b540de4 100644 --- a/src/Middlewares/CheckLastModified.php +++ b/src/Middlewares/CheckLastModified.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/src/Resources/Item.php b/src/Resources/Item.php index 7dfc608..e8279be 100644 --- a/src/Resources/Item.php +++ b/src/Resources/Item.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 32bf540..7bb5da7 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/src/Services/Checker.php b/src/Services/Checker.php index 00d0ad8..b6855b0 100644 --- a/src/Services/Checker.php +++ b/src/Services/Checker.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/src/Services/LastModified.php b/src/Services/LastModified.php index e92096f..cff3549 100644 --- a/src/Services/LastModified.php +++ b/src/Services/LastModified.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/src/Services/Processors/Processor.php b/src/Services/Processors/Processor.php index 73c40db..f04996c 100644 --- a/src/Services/Processors/Processor.php +++ b/src/Services/Processors/Processor.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/src/Services/Processors/ToDelete.php b/src/Services/Processors/ToDelete.php index e308eed..8f75c8e 100644 --- a/src/Services/Processors/ToDelete.php +++ b/src/Services/Processors/ToDelete.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/src/Services/Processors/ToUpdate.php b/src/Services/Processors/ToUpdate.php index 96c5660..5f4b271 100644 --- a/src/Services/Processors/ToUpdate.php +++ b/src/Services/Processors/ToUpdate.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/src/Support/Config.php b/src/Support/Config.php index be742c1..d24d943 100644 --- a/src/Support/Config.php +++ b/src/Support/Config.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/src/Support/Url.php b/src/Support/Url.php index 906ab88..6a5724b 100644 --- a/src/Support/Url.php +++ b/src/Support/Url.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/tests/Concerns/Asserts.php b/tests/Concerns/Asserts.php index 344ff9a..3117eb2 100644 --- a/tests/Concerns/Asserts.php +++ b/tests/Concerns/Asserts.php @@ -1,5 +1,20 @@ + * + * @copyright 2024 Andrey Helldar + * + * @license MIT + * + * @see https://github.com/TheDragonCode/last-modified + */ + declare(strict_types=1); namespace Tests\Concerns; diff --git a/tests/Concerns/Fakeable.php b/tests/Concerns/Fakeable.php index 65b465f..5bc7322 100644 --- a/tests/Concerns/Fakeable.php +++ b/tests/Concerns/Fakeable.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/tests/Concerns/Requests.php b/tests/Concerns/Requests.php index 3ce7a10..d7d8fb2 100644 --- a/tests/Concerns/Requests.php +++ b/tests/Concerns/Requests.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/tests/Concerns/Urlable.php b/tests/Concerns/Urlable.php index 5e5f4cb..9986917 100644 --- a/tests/Concerns/Urlable.php +++ b/tests/Concerns/Urlable.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/tests/TestCase.php b/tests/TestCase.php index adcbf47..52fe8b5 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/tests/WhenDisabled/Middlewares/CheckLastModifiedTest.php b/tests/WhenDisabled/Middlewares/CheckLastModifiedTest.php index f5cf58e..2de66df 100644 --- a/tests/WhenDisabled/Middlewares/CheckLastModifiedTest.php +++ b/tests/WhenDisabled/Middlewares/CheckLastModifiedTest.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/tests/WhenDisabled/Resources/ItemTest.php b/tests/WhenDisabled/Resources/ItemTest.php index 152e2ac..d558669 100644 --- a/tests/WhenDisabled/Resources/ItemTest.php +++ b/tests/WhenDisabled/Resources/ItemTest.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/tests/WhenDisabled/Services/CheckerTest.php b/tests/WhenDisabled/Services/CheckerTest.php index 189c7ba..0fdeb01 100644 --- a/tests/WhenDisabled/Services/CheckerTest.php +++ b/tests/WhenDisabled/Services/CheckerTest.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/tests/WhenDisabled/Services/LastModified/ToDeleteTest.php b/tests/WhenDisabled/Services/LastModified/ToDeleteTest.php index 67f3f81..df05cb9 100644 --- a/tests/WhenDisabled/Services/LastModified/ToDeleteTest.php +++ b/tests/WhenDisabled/Services/LastModified/ToDeleteTest.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/tests/WhenDisabled/Services/LastModified/ToUpdateTest.php b/tests/WhenDisabled/Services/LastModified/ToUpdateTest.php index c3bae1e..63da4fe 100644 --- a/tests/WhenDisabled/Services/LastModified/ToUpdateTest.php +++ b/tests/WhenDisabled/Services/LastModified/ToUpdateTest.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/tests/WhenDisabled/Services/Processors/ToDeleteTest.php b/tests/WhenDisabled/Services/Processors/ToDeleteTest.php index a872f86..20037fd 100644 --- a/tests/WhenDisabled/Services/Processors/ToDeleteTest.php +++ b/tests/WhenDisabled/Services/Processors/ToDeleteTest.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/tests/WhenDisabled/Services/Processors/ToUpdateTest.php b/tests/WhenDisabled/Services/Processors/ToUpdateTest.php index 2d87a28..6ace278 100644 --- a/tests/WhenDisabled/Services/Processors/ToUpdateTest.php +++ b/tests/WhenDisabled/Services/Processors/ToUpdateTest.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/tests/WhenDisabled/Support/ConfigTest.php b/tests/WhenDisabled/Support/ConfigTest.php index 883ed11..0ba7f5a 100644 --- a/tests/WhenDisabled/Support/ConfigTest.php +++ b/tests/WhenDisabled/Support/ConfigTest.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/tests/WhenDisabled/Support/UrlTest.php b/tests/WhenDisabled/Support/UrlTest.php index adcd376..f6c2a60 100644 --- a/tests/WhenDisabled/Support/UrlTest.php +++ b/tests/WhenDisabled/Support/UrlTest.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/tests/WhenDisabled/TestCase.php b/tests/WhenDisabled/TestCase.php index 6c9ce5e..1ab02a2 100644 --- a/tests/WhenDisabled/TestCase.php +++ b/tests/WhenDisabled/TestCase.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/tests/WhenEnabled/Middlewares/CheckLastModifiedTest.php b/tests/WhenEnabled/Middlewares/CheckLastModifiedTest.php index 8d27b67..cc9622b 100644 --- a/tests/WhenEnabled/Middlewares/CheckLastModifiedTest.php +++ b/tests/WhenEnabled/Middlewares/CheckLastModifiedTest.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/tests/WhenEnabled/Resources/ItemTest.php b/tests/WhenEnabled/Resources/ItemTest.php index 3528181..5b65cd4 100644 --- a/tests/WhenEnabled/Resources/ItemTest.php +++ b/tests/WhenEnabled/Resources/ItemTest.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/tests/WhenEnabled/Services/CheckerTest.php b/tests/WhenEnabled/Services/CheckerTest.php index 4f11c58..602f913 100644 --- a/tests/WhenEnabled/Services/CheckerTest.php +++ b/tests/WhenEnabled/Services/CheckerTest.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/tests/WhenEnabled/Services/LastModified/ToDeleteTest.php b/tests/WhenEnabled/Services/LastModified/ToDeleteTest.php index 8246c1e..860df7c 100644 --- a/tests/WhenEnabled/Services/LastModified/ToDeleteTest.php +++ b/tests/WhenEnabled/Services/LastModified/ToDeleteTest.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/tests/WhenEnabled/Services/LastModified/ToUpdateTest.php b/tests/WhenEnabled/Services/LastModified/ToUpdateTest.php index f21a32f..38b8956 100644 --- a/tests/WhenEnabled/Services/LastModified/ToUpdateTest.php +++ b/tests/WhenEnabled/Services/LastModified/ToUpdateTest.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/tests/WhenEnabled/Services/Processors/ToDeleteTest.php b/tests/WhenEnabled/Services/Processors/ToDeleteTest.php index d8cfff1..9e9081b 100644 --- a/tests/WhenEnabled/Services/Processors/ToDeleteTest.php +++ b/tests/WhenEnabled/Services/Processors/ToDeleteTest.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/tests/WhenEnabled/Services/Processors/ToUpdateTest.php b/tests/WhenEnabled/Services/Processors/ToUpdateTest.php index 60b944f..954cdd3 100644 --- a/tests/WhenEnabled/Services/Processors/ToUpdateTest.php +++ b/tests/WhenEnabled/Services/Processors/ToUpdateTest.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/tests/WhenEnabled/Support/ConfigTest.php b/tests/WhenEnabled/Support/ConfigTest.php index ef4f864..72baf85 100644 --- a/tests/WhenEnabled/Support/ConfigTest.php +++ b/tests/WhenEnabled/Support/ConfigTest.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/tests/WhenEnabled/Support/UrlTest.php b/tests/WhenEnabled/Support/UrlTest.php index 86bf23a..9fe1317 100644 --- a/tests/WhenEnabled/Support/UrlTest.php +++ b/tests/WhenEnabled/Support/UrlTest.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/tests/WhenEnabled/TestCase.php b/tests/WhenEnabled/TestCase.php index 09ee3cd..d911587 100644 --- a/tests/WhenEnabled/TestCase.php +++ b/tests/WhenEnabled/TestCase.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/tests/fixtures/Models/Custom.php b/tests/fixtures/Models/Custom.php index b4a551d..34949be 100644 --- a/tests/fixtures/Models/Custom.php +++ b/tests/fixtures/Models/Custom.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/tests/fixtures/Providers/TestServiceProvider.php b/tests/fixtures/Providers/TestServiceProvider.php index 1439478..2ba0611 100644 --- a/tests/fixtures/Providers/TestServiceProvider.php +++ b/tests/fixtures/Providers/TestServiceProvider.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * diff --git a/tests/fixtures/database/migrations/2021_11_11_233030_create_custom_table.php b/tests/fixtures/database/migrations/2021_11_11_233030_create_custom_table.php index 06437dc..a8e2fd7 100644 --- a/tests/fixtures/database/migrations/2021_11_11_233030_create_custom_table.php +++ b/tests/fixtures/database/migrations/2021_11_11_233030_create_custom_table.php @@ -8,7 +8,7 @@ * * @author Andrey Helldar * - * @copyright 2021 Andrey Helldar + * @copyright 2024 Andrey Helldar * * @license MIT * From 1f2a791593570341cbc3f4b07efbd9a595cba192 Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Wed, 13 Mar 2024 11:43:45 +0300 Subject: [PATCH 2/2] Fixed deprecated methods --- tests/WhenDisabled/Resources/ItemTest.php | 2 +- tests/WhenEnabled/Resources/ItemTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/WhenDisabled/Resources/ItemTest.php b/tests/WhenDisabled/Resources/ItemTest.php index d558669..78b36e1 100644 --- a/tests/WhenDisabled/Resources/ItemTest.php +++ b/tests/WhenDisabled/Resources/ItemTest.php @@ -54,7 +54,7 @@ public function testMake() public function testWrongUrl() { $this->expectException(NotValidUrlException::class); - $this->expectDeprecationMessage('The "foo" is not a valid URL.'); + $this->expectExceptionMessage('The "foo" is not a valid URL.'); Item::make(['url' => 'foo']); } diff --git a/tests/WhenEnabled/Resources/ItemTest.php b/tests/WhenEnabled/Resources/ItemTest.php index 5b65cd4..fa89a9f 100644 --- a/tests/WhenEnabled/Resources/ItemTest.php +++ b/tests/WhenEnabled/Resources/ItemTest.php @@ -54,7 +54,7 @@ public function testMake() public function testWrongUrl() { $this->expectException(NotValidUrlException::class); - $this->expectDeprecationMessage('The "foo" is not a valid URL.'); + $this->expectExceptionMessage('The "foo" is not a valid URL.'); Item::make(['url' => 'foo']); }