Skip to content

Commit

Permalink
Added Laravel 11 support
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-helldar committed Mar 13, 2024
1 parent 5ce7781 commit 7bbc3b9
Show file tree
Hide file tree
Showing 47 changed files with 117 additions and 54 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -22,6 +22,9 @@ jobs:
- laravel: "6.0"
php: "8.2"

- laravel: "6.0"
php: "8.3"

- laravel: "7.0"
doctrine: "3.0"

Expand All @@ -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:
Expand All @@ -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 }}
Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "*"
Expand Down
2 changes: 1 addition & 1 deletion config/last_modified.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <[email protected]>
*
* @copyright 2021 Andrey Helldar
* @copyright 2024 Andrey Helldar
*
* @license MIT
*
Expand Down
6 changes: 3 additions & 3 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
~
~ @author Andrey Helldar <[email protected]>
~
~ @copyright 2021 Andrey Helldar
~ @copyright 2024 Andrey Helldar
~
~ @license MIT
~
Expand All @@ -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"
Expand Down
15 changes: 15 additions & 0 deletions src/Concerns/Cacheable.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
<?php

/*
* This file is part of the "dragon-code/last-modified" project.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Andrey Helldar <[email protected]>
*
* @copyright 2024 Andrey Helldar
*
* @license MIT
*
* @see https://github.com/TheDragonCode/last-modified
*/

declare(strict_types=1);

namespace DragonCode\LastModified\Concerns;
Expand Down
2 changes: 1 addition & 1 deletion src/Concerns/Urlable.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <[email protected]>
*
* @copyright 2021 Andrey Helldar
* @copyright 2024 Andrey Helldar
*
* @license MIT
*
Expand Down
15 changes: 15 additions & 0 deletions src/Constants/Field.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
<?php

/*
* This file is part of the "dragon-code/last-modified" project.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Andrey Helldar <[email protected]>
*
* @copyright 2024 Andrey Helldar
*
* @license MIT
*
* @see https://github.com/TheDragonCode/last-modified
*/

namespace DragonCode\LastModified\Constants;

class Field
Expand Down
2 changes: 1 addition & 1 deletion src/Facades/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <[email protected]>
*
* @copyright 2021 Andrey Helldar
* @copyright 2024 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/Facades/Url.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <[email protected]>
*
* @copyright 2021 Andrey Helldar
* @copyright 2024 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/Middlewares/CheckLastModified.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <[email protected]>
*
* @copyright 2021 Andrey Helldar
* @copyright 2024 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <[email protected]>
*
* @copyright 2021 Andrey Helldar
* @copyright 2024 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <[email protected]>
*
* @copyright 2021 Andrey Helldar
* @copyright 2024 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/Services/Checker.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <[email protected]>
*
* @copyright 2021 Andrey Helldar
* @copyright 2024 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/Services/LastModified.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <[email protected]>
*
* @copyright 2021 Andrey Helldar
* @copyright 2024 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/Services/Processors/Processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <[email protected]>
*
* @copyright 2021 Andrey Helldar
* @copyright 2024 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/Services/Processors/ToDelete.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <[email protected]>
*
* @copyright 2021 Andrey Helldar
* @copyright 2024 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/Services/Processors/ToUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <[email protected]>
*
* @copyright 2021 Andrey Helldar
* @copyright 2024 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/Support/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <[email protected]>
*
* @copyright 2021 Andrey Helldar
* @copyright 2024 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/Support/Url.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <[email protected]>
*
* @copyright 2021 Andrey Helldar
* @copyright 2024 Andrey Helldar
*
* @license MIT
*
Expand Down
15 changes: 15 additions & 0 deletions tests/Concerns/Asserts.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
<?php

/*
* This file is part of the "dragon-code/last-modified" project.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Andrey Helldar <[email protected]>
*
* @copyright 2024 Andrey Helldar
*
* @license MIT
*
* @see https://github.com/TheDragonCode/last-modified
*/

declare(strict_types=1);

namespace Tests\Concerns;
Expand Down
2 changes: 1 addition & 1 deletion tests/Concerns/Fakeable.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <[email protected]>
*
* @copyright 2021 Andrey Helldar
* @copyright 2024 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion tests/Concerns/Requests.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <[email protected]>
*
* @copyright 2021 Andrey Helldar
* @copyright 2024 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion tests/Concerns/Urlable.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <[email protected]>
*
* @copyright 2021 Andrey Helldar
* @copyright 2024 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <[email protected]>
*
* @copyright 2021 Andrey Helldar
* @copyright 2024 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion tests/WhenDisabled/Middlewares/CheckLastModifiedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <[email protected]>
*
* @copyright 2021 Andrey Helldar
* @copyright 2024 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion tests/WhenDisabled/Resources/ItemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <[email protected]>
*
* @copyright 2021 Andrey Helldar
* @copyright 2024 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion tests/WhenDisabled/Services/CheckerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <[email protected]>
*
* @copyright 2021 Andrey Helldar
* @copyright 2024 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion tests/WhenDisabled/Services/LastModified/ToDeleteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <[email protected]>
*
* @copyright 2021 Andrey Helldar
* @copyright 2024 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion tests/WhenDisabled/Services/LastModified/ToUpdateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <[email protected]>
*
* @copyright 2021 Andrey Helldar
* @copyright 2024 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion tests/WhenDisabled/Services/Processors/ToDeleteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <[email protected]>
*
* @copyright 2021 Andrey Helldar
* @copyright 2024 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion tests/WhenDisabled/Services/Processors/ToUpdateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <[email protected]>
*
* @copyright 2021 Andrey Helldar
* @copyright 2024 Andrey Helldar
*
* @license MIT
*
Expand Down
Loading

0 comments on commit 7bbc3b9

Please sign in to comment.