Skip to content

Commit ef27260

Browse files
Laravel 10 Support (#97)
Add support for Laravel 10 --------- Co-authored-by: Luke Walsh <kyon.rf@gmail.com>
1 parent b4e1290 commit ef27260

File tree

4 files changed

+16
-14
lines changed

4 files changed

+16
-14
lines changed

.github/workflows/ci.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,24 @@ jobs:
1010
max-parallel: 3
1111
matrix:
1212
php:
13-
- '7.3'
14-
- '7.4'
1513
- '8.0'
14+
- '8.1'
1615
analysis: [ false ]
1716
coverage: [ 'none' ]
1817
normalize: [ false ]
1918
validate: [ false ]
2019
laravel:
2120
- '8.22'
2221
- '9.0'
22+
- '10.0'
2323
exclude:
24-
- php: '7.3'
25-
laravel: '9.0'
26-
- php: '7.4'
27-
laravel: '9.0'
2824
- php: '8.0'
29-
laravel: '7.0'
25+
laravel: '9.0'
3026
- php: '8.0'
27+
laravel: '10.0'
28+
- php: '8.1'
29+
laravel: '8.22'
30+
- php: '8.1'
3131
laravel: '9.0'
3232
include:
3333
- php: '8.0'

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ composer.lock
1414
.idea/**/usage.statistics.xml
1515
.idea/**/dictionaries
1616
.idea/**/shelf
17+
.idea/git_toolbox_prj.xml
18+
.idea/php-test-framework.xml
1719

1820
# Generated files
1921
.idea/**/contentModel.xml

composer.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,22 @@
2424
}
2525
],
2626
"require": {
27-
"php": "^7.3 || ^8.0 || 8.1",
27+
"php": "^8.0 || 8.1",
2828
"ext-json": "*",
2929
"funeralzone/valueobjects": "^0.5",
3030
"jenssegers/agent": "^2.6",
31-
"laravel/framework": "^7.0 || ^8.0 || ^9.0",
32-
"osiset/basic-shopify-api": "^9.0 || <=10.0.5"
31+
"laravel/framework": "^8.0 || ^9.0 || ^10.0",
32+
"gnikyt/basic-shopify-api": "^9.0 || ^10.0"
3333
},
3434
"require-dev": {
3535
"laravel/legacy-factories": "^v1.3.0",
3636
"ergebnis/composer-normalize": "^2.8",
3737
"friendsofphp/php-cs-fixer": "^3.0",
3838
"mockery/mockery": "^1.0",
3939
"orchestra/database": "~3.8 || ~4.0 || ~5.0 || ~6.0 || ~7.0",
40-
"orchestra/testbench": "~3.8 || ~4.0 || ~5.0 || ~6.0 || ~7.0",
40+
"orchestra/testbench": "~3.8 || ~4.0 || ~5.0 || ~6.0 || ~7.0 || ~8.0",
4141
"phpstan/phpstan": "^0.12",
42-
"phpunit/phpunit": "~8.0 || ^9.0"
42+
"phpunit/phpunit": "~8.0 || ^9.0 || ^10.0"
4343
},
4444
"config": {
4545
"sort-packages": true,

tests/Services/ChargeHelperTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public function testDetails2(): void
172172
protected function seedData($extraCharge = [], $extraPlan = [], $type = 'onetime'): array
173173
{
174174
// Create a plan
175-
$plan = factory(Util::getShopifyConfig('models.plan', Plan::class))->states("type_${type}")->create(
175+
$plan = factory(Util::getShopifyConfig('models.plan', Plan::class))->states("type_{$type}")->create(
176176
array_merge(
177177
['trial_days' => 7],
178178
$extraPlan
@@ -185,7 +185,7 @@ protected function seedData($extraCharge = [], $extraPlan = [], $type = 'onetime
185185
]);
186186

187187
// Create a charge for the plan and shop
188-
$charge = factory(Util::getShopifyConfig('models.charge', Charge::class))->states("type_${type}")->create(
188+
$charge = factory(Util::getShopifyConfig('models.charge', Charge::class))->states("type_{$type}")->create(
189189
array_merge(
190190
[
191191
'charge_id' => 12345,

0 commit comments

Comments
 (0)