Skip to content

Commit 07a478b

Browse files
authored
Merge pull request #4 from codebar-ag/feature-l11
Laravel 11
2 parents d5bdab2 + 2723eef commit 07a478b

File tree

5 files changed

+10
-13
lines changed

5 files changed

+10
-13
lines changed

.github/workflows/psalm.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.1'
19+
php-version: '8.2'
2020
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
2121
coverage: none
2222

.github/workflows/run-tests.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,8 @@ jobs:
1515
matrix:
1616
os: [ ubuntu-latest, windows-latest ]
1717
php: [ 8.2, 8.3 ]
18-
laravel: [ 10.* ]
18+
laravel: [ 11.* ]
1919
stability: [ prefer-lowest, prefer-stable ]
20-
include:
21-
- laravel: 10.*
22-
testbench: 8.*
2320

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

@@ -41,7 +38,7 @@ jobs:
4138
4239
- name: Install dependencies
4340
run: |
44-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
41+
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
4542
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
4643
4744
- name: Set phpunit.xml

composer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@
2121
}
2222
],
2323
"require": {
24-
"php": "^8.1",
24+
"php": ">=8.2",
2525
"guzzlehttp/guzzle": "^7.8",
26-
"illuminate/contracts": "^10.0",
26+
"illuminate/contracts": "^11.0",
2727
"spatie/laravel-package-tools": "^1.16"
2828
},
2929
"require-dev": {
3030
"friendsofphp/php-cs-fixer": "^3.46",
31+
"nunomaduro/collision": "^8.1",
32+
"orchestra/testbench": "^9.0",
3133
"laravel/pint": "^1.14",
32-
"nunomaduro/collision": "^7.10",
33-
"orchestra/testbench": "^8.20",
3434
"pestphp/pest": "^2.31",
3535
"phpunit/phpunit": "^10.5",
3636
"spatie/laravel-ray": "^1.35",

tests/Feature/TwilioVerifyTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function it_does_start_a_verification_with_sms()
1818
Event::fake();
1919
$phoneNumber = '+12085059915';
2020

21-
$verification = (new TwilioVerify())->start(to: $phoneNumber);
21+
$verification = (new TwilioVerify)->start(to: $phoneNumber);
2222

2323
$this->assertInstanceOf(VerificationStart::class, $verification);
2424
$this->assertSame($phoneNumber, $verification->to);
@@ -37,7 +37,7 @@ public function it_does_check_a_verification_with_sms()
3737
$code = '4804';
3838
$phoneNumber = '+12085059915';
3939

40-
$verification = (new TwilioVerify())->check(
40+
$verification = (new TwilioVerify)->check(
4141
to: $phoneNumber,
4242
code: $code,
4343
);

tests/TestCase.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
class TestCase extends Orchestra
1010
{
11-
public function setUp(): void
11+
protected function setUp(): void
1212
{
1313
parent::setUp();
1414

0 commit comments

Comments
 (0)