Skip to content

Commit d370605

Browse files
authored
Merge pull request #20 from worksome/feature/laravel-11
feat: add support for Laravel 11
2 parents d31e57e + 9f75f3d commit d370605

File tree

7 files changed

+41
-55
lines changed

7 files changed

+41
-55
lines changed

.github/workflows/phpstan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
name: phpstan
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515

1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2

.github/workflows/run-tests.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,25 @@ jobs:
1010
test:
1111
runs-on: ${{ matrix.os }}
1212
env:
13-
PREVENT_OUTPUT: true
1413
FIXER_ACCESS_KEY: ${{ secrets.FIXER_ACCESS_KEY }}
1514
strategy:
1615
fail-fast: true
1716
matrix:
1817
os: [ubuntu-latest, windows-latest]
19-
php: [8.2]
20-
laravel: [10.*]
18+
php: [8.2, 8.3]
19+
laravel: [10.*, 11.*]
2120
stability: [prefer-lowest, prefer-stable]
2221
include:
2322
- laravel: 10.*
2423
testbench: 8.*
24+
- laravel: 11.*
25+
testbench: 9.*
2526

2627
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2728

2829
steps:
2930
- name: Checkout code
30-
uses: actions/checkout@v3
31+
uses: actions/checkout@v4
3132

3233
- name: Setup PHP
3334
uses: shivammathur/setup-php@v2

composer.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@
1717
],
1818
"require": {
1919
"php": "^8.2",
20-
"illuminate/contracts": "^10.0",
21-
"nunomaduro/termwind": "^1.15",
22-
"spatie/laravel-package-tools": "^1.14"
20+
"illuminate/contracts": "^10.0 || ^11.0",
21+
"nunomaduro/termwind": "^1.15 || ^2.0",
22+
"spatie/laravel-package-tools": "^1.16"
2323
},
2424
"require-dev": {
2525
"guzzlehttp/guzzle": "^7.5",
26-
"nunomaduro/collision": "^7.0",
27-
"nunomaduro/larastan": "^2.4",
28-
"orchestra/testbench": "^8.0",
29-
"pestphp/pest": "^2.0",
30-
"pestphp/pest-plugin-laravel": "^2.0",
31-
"worksome/coding-style": "^2.3"
26+
"nunomaduro/collision": "^7.0 || ^8.1",
27+
"larastan/larastan": "^2.6",
28+
"orchestra/testbench": "^8.0 || ^9.0",
29+
"pestphp/pest": "^2.33",
30+
"pestphp/pest-plugin-laravel": "^2.2",
31+
"worksome/coding-style": "^2.8"
3232
},
3333
"autoload": {
3434
"psr-4": {

ecs.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use Symplify\EasyCodingStandard\Config\ECSConfig;
66
use Worksome\CodingStyle\WorksomeEcsConfig;
77

8-
98
return static function (ECSConfig $ecsConfig): void {
109
$ecsConfig->paths([
1110
__DIR__ . '/src',

phpcs.xml

Lines changed: 0 additions & 31 deletions
This file was deleted.

phpstan-baseline.neon

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
parameters:
2+
ignoreErrors:
3+
-
4+
message: "#^Illuminate\\\\Support\\\\Facades\\\\Blade facade should not be used\\.$#"
5+
count: 1
6+
path: src/Commands/ViewLatestRatesCommand.php
7+
8+
-
9+
message: "#^Parameter \\#1 \\$value of function intval expects array\\|bool\\|float\\|int\\|resource\\|string\\|null, mixed given\\.$#"
10+
count: 1
11+
path: src/ExchangeRateProviders/FixerProvider.php
12+
13+
-
14+
message: "#^Worksome\\\\Exchange\\\\Facades\\\\Exchange facade should not be used\\.$#"
15+
count: 1
16+
path: src/Facades/Exchange.php
17+
18+
-
19+
message: "#^Parameter \\#1 \\$value of function intval expects array\\|bool\\|float\\|int\\|resource\\|string\\|null, mixed given\\.$#"
20+
count: 1
21+
path: src/Support/ExchangeRateManager.php
22+
23+
-
24+
message: "#^Parameter \\#1 \\$value of function strval expects bool\\|float\\|int\\|resource\\|string\\|null, mixed given\\.$#"
25+
count: 2
26+
path: src/Support/ExchangeRateManager.php

renovate.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)