Skip to content

Commit 2a5302d

Browse files
authored
Add support to Laravel 11 (#35)
1 parent 7b1a3bc commit 2a5302d

File tree

5 files changed

+30
-24
lines changed

5 files changed

+30
-24
lines changed

.github/workflows/phpstan.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,22 @@ jobs:
1717
- name: Setup PHP
1818
uses: shivammathur/setup-php@v2
1919
with:
20-
php-version: 8.1
20+
php-version: 8.2
2121

2222
- name: Cache Composer packages
2323
id: composer-cache
2424
uses: actions/cache@v4
2525
with:
2626
path: vendor
27-
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
27+
key: ${{ runner.os }}-php-8.2-${{ hashFiles('**/composer.lock') }}
2828
restore-keys: |
29-
${{ runner.os }}-php-
29+
${{ runner.os }}-php-8.2-
30+
3031
- name: Install dependencies
3132
if: steps.composer-cache.outputs.cache-hit != 'true'
3233
run: |
3334
composer install
3435
composer dump
36+
3537
- name: Run analyse phpstan
3638
run: vendor/bin/phpstan analyse --error-format github

.github/workflows/style-fix.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,18 @@ jobs:
1515
- name: Setup PHP
1616
uses: shivammathur/setup-php@v2
1717
with:
18-
php-version: '8.1'
18+
php-version: '8.2'
1919
coverage: xdebug
2020

2121
- name: Cache Composer packages
2222
id: composer-cache
2323
uses: actions/cache@v4
2424
with:
2525
path: vendor
26-
key: ${{ runner.os }}-php-8.1-${{ hashFiles('**/composer.lock') }}
26+
key: ${{ runner.os }}-php-8.2-${{ hashFiles('**/composer.lock') }}
2727
restore-keys: |
28-
${{ runner.os }}-php--8.1
28+
${{ runner.os }}-php--8.2
29+
2930
- name: Install dependencies
3031
if: steps.composer-cache.outputs.cache-hit != 'true'
3132
run: |

.github/workflows/tests.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,22 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
php: [8.3, 8.2, 8.1, 8.0]
16-
laravel: [10.*, 9.*]
16+
laravel: [11.*, 10.*, 9.*]
1717
dependency-version: [prefer-lowest, prefer-stable]
1818
include:
1919
- laravel: 9.*
2020
testbench: 7.*
2121
- laravel: 10.*
2222
testbench: 8.*
23+
- laravel: 11.*
24+
testbench: 9.*
2325
exclude:
2426
- laravel: 10.*
2527
php: 8.0
28+
- laravel: 11.*
29+
php: 8.0
30+
- laravel: 11.*
31+
php: 8.1
2632

2733
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
2834

composer.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@
1919
"license": "MIT",
2020
"require": {
2121
"php" : "^8.0",
22-
"illuminate/config": "^9.0|^10.0",
23-
"illuminate/console": "^9.0|^10.0",
24-
"illuminate/log": "^9.0|^10.0",
25-
"illuminate/support": "^9.0|^10.0",
26-
"monolog/monolog": "^2.0|^3.0",
22+
"illuminate/config": "^9.0|^10.0|^11.0",
23+
"illuminate/console": "^9.0|^10.0|^11.0",
24+
"illuminate/log": "^9.0|^10.0|^11.0",
25+
"illuminate/support": "^9.0|^10.0|^11.0",
26+
"monolog/monolog": "^2.0|^3.0|^11.0",
2727
"cesargb/php-log-rotation": "^2.7"
2828
},
2929
"require-dev": {
30-
"orchestra/testbench": "^7.0|^8.0",
31-
"phpunit/phpunit": "^9.5",
30+
"phpunit/phpunit": "^9.5|^10.5",
3231
"friendsofphp/php-cs-fixer": "^3.13",
33-
"nunomaduro/larastan": "^2.3"
32+
"nunomaduro/larastan": "^2.3",
33+
"orchestra/testbench": "^7.0|^8.0|^9.0"
3434
},
3535
"autoload": {
3636
"psr-4": {

phpunit.xml.dist

+6-9
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" backupStaticAttributes="false" colors="true" verbose="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
3-
<coverage>
4-
<include>
5-
<directory suffix=".php">src/</directory>
6-
</include>
7-
<report>
8-
<text outputFile="php://stdout" showUncoveredFiles="false"/>
9-
</report>
10-
</coverage>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
113
<testsuites>
124
<testsuite name="League Test Suite">
135
<directory>tests</directory>
146
</testsuite>
157
</testsuites>
168
<logging/>
9+
<source>
10+
<include>
11+
<directory suffix=".php">src/</directory>
12+
</include>
13+
</source>
1714
</phpunit>

0 commit comments

Comments
 (0)