Skip to content

Commit f5f6ef9

Browse files
Add Laravel 9 support, drop PHP 7.4 (#1)
* Drop PHP 7.4 support, require PHP 8.0 as minimum * Add Laravel 9 support * Remove automated tests against Laravel 8 Co-authored-by: Alessio Vertemati <[email protected]>
1 parent c6a0740 commit f5f6ef9

File tree

3 files changed

+12
-15
lines changed

3 files changed

+12
-15
lines changed

.github/workflows/run-tests.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,9 @@ jobs:
1313
fail-fast: true
1414
matrix:
1515
os: [ubuntu-latest]
16-
php: [7.4, 8.0]
17-
laravel: [8.*]
16+
php: [8.0, 8.1]
17+
laravel: ['^9.0']
1818
stability: [prefer-lowest, prefer-stable]
19-
include:
20-
- laravel: 8.*
21-
testbench: ^6.6
2219

2320
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2421

@@ -45,7 +42,7 @@ jobs:
4542
4643
- name: Install dependencies
4744
run: |
48-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
45+
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
4946
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
5047
5148
- name: Execute tests

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^7.4|^8.0",
20-
"illuminate/contracts": "^8.37",
21-
"illuminate/support": "^8.37",
22-
"illuminate/http": "^8.37",
23-
"symfony/process": "^5.1.4"
19+
"php": "^8.0",
20+
"illuminate/contracts": "^8.37|^9.0",
21+
"illuminate/support": "^8.37|^9.0",
22+
"illuminate/http": "^8.37|^9.0",
23+
"symfony/process": "^5.1.4|^6.0"
2424
},
2525
"require-dev": {
2626
"brianium/paratest": "^6.2",
27-
"nunomaduro/collision": "^5.3",
28-
"orchestra/testbench": "^6.15",
29-
"phpunit/phpunit": "^9.3",
27+
"nunomaduro/collision": "^5.3|^6.1",
28+
"orchestra/testbench": "^6.6|^7.0",
29+
"phpunit/phpunit": "^9.5.10",
3030
"vimeo/psalm": "^4.8",
3131
"guzzlehttp/guzzle": "^7.0.1"
3232
},

tests/Unit/LocalLanguageRecognizerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function it_can_recognize_a_string()
4949

5050
$this->assertEquals([
5151
"sco" => 1.0,
52-
"eng" => 0.98693181818182,
52+
"eng" => 0.9869318181818182,
5353
], $languages);
5454
}
5555

0 commit comments

Comments
 (0)