Skip to content

Commit fde4a7d

Browse files
committed
Laravel 12 support
1 parent 74d2860 commit fde4a7d

File tree

6 files changed

+74
-81
lines changed

6 files changed

+74
-81
lines changed

.github/workflows/analyse.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,10 @@ jobs:
99
fail-fast: true
1010
matrix:
1111
os: [ubuntu-latest]
12-
php: [8.3]
13-
laravel: [10.*, 11.*]
12+
php: [8.3, 8.4]
13+
laravel: [11.*]
1414
stability: [prefer-stable]
1515
include:
16-
- laravel: 10.*
17-
testbench: 8.*
1816
- laravel: 11.*
1917
testbench: 9.*
2018

.github/workflows/coverage.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,10 @@ jobs:
99
fail-fast: true
1010
matrix:
1111
os: [ubuntu-latest]
12-
php: [8.3]
13-
laravel: [10.*, 11.*]
12+
php: [8.4]
13+
laravel: [11.*]
1414
stability: [prefer-stable]
1515
include:
16-
- laravel: 10.*
17-
testbench: 8.*
1816
- laravel: 11.*
1917
testbench: 9.*
2018

@@ -33,8 +31,7 @@ jobs:
3331

3432
- name: Install dependencies
3533
run: |
36-
composer config allow-plugins.pestphp/pest-plugin true
3734
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
3835
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
3936
- name: Execute tests
40-
run: XDEBUG_MODE=coverage php vendor/bin/pest --coverage --min=100
37+
run: composer coverage

.github/workflows/style.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2
1818
with:
19-
php-version: 8.3
19+
php-version: 8.4
2020
extensions: dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
2121
coverage: none
2222

.github/workflows/tests.yml

+3-8
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,12 @@ jobs:
99
fail-fast: true
1010
matrix:
1111
os: [ubuntu-latest]
12-
php: [8.1, 8.2, 8.3]
13-
laravel: [10.*, 11.*]
14-
stability: [prefer-stable]
12+
php: [8.3, 8.4]
13+
laravel: [11.*]
14+
stability: [prefer-lowest, prefer-stable]
1515
include:
16-
- laravel: 10.*
17-
testbench: 8.*
1816
- laravel: 11.*
1917
testbench: 9.*
20-
exclude:
21-
- laravel: 11.*
22-
php: 8.1
2318

2419
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2520

composer.json

+62-60
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,65 @@
11
{
2-
"name": "justbetter/laravel-magento-products",
3-
"description": "Package to store product data in a local DB",
4-
"type": "package",
5-
"license": "MIT",
6-
"require": {
7-
"php": "^8.1",
8-
"justbetter/laravel-magento-client": "^2.6.1",
9-
"laravel/framework": "^10.0|^11.0"
10-
},
11-
"require-dev": {
12-
"doctrine/dbal": "^3.7.1",
13-
"larastan/larastan": "^2.9",
14-
"laravel/pint": "^1.6",
15-
"orchestra/testbench": "^8.0|^9.0",
16-
"pestphp/pest": "^2.0",
17-
"phpstan/phpstan-mockery": "^1.1",
18-
"phpunit/phpunit": "^10.0"
19-
},
20-
"authors": [
21-
{
22-
"name": "Vincent Boon",
23-
"email": "[email protected]",
24-
"role": "Developer"
25-
}
26-
],
27-
"autoload": {
28-
"psr-4": {
29-
"JustBetter\\MagentoProducts\\": "src"
30-
}
31-
},
32-
"autoload-dev": {
33-
"psr-4": {
34-
"JustBetter\\MagentoProducts\\Tests\\": "tests"
35-
}
36-
},
37-
"scripts": {
38-
"test": "phpunit",
39-
"analyse": "phpstan",
40-
"style": "pint --test",
41-
"quality": [
42-
"@test",
43-
"@analyse",
44-
"@style"
2+
"name": "justbetter/laravel-magento-products",
3+
"description": "Package to store product data in a local DB",
4+
"type": "package",
5+
"license": "MIT",
6+
"require": {
7+
"php": "^8.3",
8+
"justbetter/laravel-magento-client": "^2.6.1",
9+
"laravel/framework": "^11.0|^12.0"
10+
},
11+
"require-dev": {
12+
"doctrine/dbal": "^3.7.1",
13+
"larastan/larastan": "^3.0",
14+
"laravel/pint": "^1.20",
15+
"orchestra/testbench": "^9.0",
16+
"pestphp/pest": "^3.7",
17+
"phpstan/phpstan-mockery": "^2.0",
18+
"phpunit/phpunit": "^11.5"
19+
},
20+
"authors": [
21+
{
22+
"name": "Vincent Boon",
23+
"email": "[email protected]",
24+
"role": "Developer"
25+
}
4526
],
46-
"fix-style": "pint"
47-
},
48-
"config": {
49-
"sort-packages": true,
50-
"allow-plugins": {
51-
"pestphp/pest-plugin": true
52-
}
53-
},
54-
"extra": {
55-
"laravel": {
56-
"providers": [
57-
"JustBetter\\MagentoProducts\\ServiceProvider"
58-
]
59-
}
60-
},
61-
"minimum-stability": "stable",
62-
"prefer-stable": true
27+
"autoload": {
28+
"psr-4": {
29+
"JustBetter\\MagentoProducts\\": "src"
30+
}
31+
},
32+
"autoload-dev": {
33+
"psr-4": {
34+
"JustBetter\\MagentoProducts\\Tests\\": "tests"
35+
}
36+
},
37+
"scripts": {
38+
"test": "phpunit",
39+
"analyse": "phpstan --memory-limit=256M",
40+
"style": "pint --test",
41+
"quality": [
42+
"@style",
43+
"@analyse",
44+
"@test",
45+
"@coverage"
46+
],
47+
"fix-style": "pint",
48+
"coverage": "XDEBUG_MODE=coverage php vendor/bin/pest --coverage --min=100"
49+
},
50+
"config": {
51+
"sort-packages": true,
52+
"allow-plugins": {
53+
"pestphp/pest-plugin": true
54+
}
55+
},
56+
"extra": {
57+
"laravel": {
58+
"providers": [
59+
"JustBetter\\MagentoProducts\\ServiceProvider"
60+
]
61+
}
62+
},
63+
"minimum-stability": "stable",
64+
"prefer-stable": true
6365
}

phpstan.neon

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ parameters:
77
- src
88
- tests
99
level: 8
10-
checkMissingIterableValueType: false
11-
checkGenericClassInNonGenericObjectType: false
10+
ignoreErrors:
11+
- identifier: missingType.iterableValue
12+
- identifier: missingType.generics

0 commit comments

Comments
 (0)