Skip to content

Commit f294c2d

Browse files
authored
Upgrade php 8.2 (#11)
* upgrade php/laravel
1 parent 7dd31ef commit f294c2d

File tree

4 files changed

+21
-22
lines changed

4 files changed

+21
-22
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,19 @@ env:
2626
DB_PASSWORD: 'postgres'
2727
DB_HOST: '127.0.0.1'
2828

29-
jobs:
29+
jobs:
3030
lint:
3131
runs-on: '${{ matrix.operating_system }}'
32-
timeout-minutes: 20
33-
strategy:
32+
timeout-minutes: 20
33+
strategy:
3434
matrix:
3535
operating_system: [ubuntu-latest]
3636
php_versions: ['7.4']
3737
fail-fast: false
38-
env:
38+
env:
3939
PHP_CS_FIXER_FUTURE_MODE: '0'
4040
name: 'Lint PHP'
41-
steps:
41+
steps:
4242
- name: 'Checkout'
4343
uses: actions/checkout@v2
4444
- name: 'Setup cache environment'
@@ -55,11 +55,11 @@ jobs:
5555
key: '${{ steps.cache-env.outputs.key }}'
5656
restore-keys: '${{ steps.cache-env.outputs.key }}'
5757
- name: 'Setup PHP'
58-
uses: shivammathur/setup-php@v2
59-
with:
58+
uses: shivammathur/setup-php@v2
59+
with:
6060
php-version: ${{ matrix.php_versions }}
6161
extensions: '${{ env.php_extensions }}'
62-
ini-values: memory_limit=-1
62+
ini-values: memory_limit=-1
6363
tools: pecl, composer
6464
coverage: none
6565
- name: 'Setup problem matchers for PHP (aka PHP error logs)'
@@ -82,12 +82,6 @@ jobs:
8282
laravel: ['^6.0']
8383
php_versions: ['7.4']
8484
include:
85-
- operating_system: ubuntu-latest
86-
postgres: '9.6'
87-
php_versions: '7.3'
88-
laravel: '^6.0'
89-
experimental: true
90-
coverage: false
9185
- operating_system: ubuntu-latest
9286
postgres: '10'
9387
php_versions: '7.4'
@@ -118,6 +112,12 @@ jobs:
118112
laravel: '^10.0'
119113
experimental: false
120114
coverage: false
115+
- operating_system: ubuntu-latest
116+
postgres: '15'
117+
php_versions: '8.2'
118+
laravel: '^11.0'
119+
experimental: false
120+
coverage: false
121121
runs-on: '${{ matrix.operating_system }}'
122122
services:
123123
postgres:

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@
3535
}
3636
},
3737
"require": {
38-
"php": "^7.3|^7.4|^8.0",
39-
"illuminate/support": "^5.7|^6.20|^7.30|^8.20|^9.0|^10.0",
40-
"illuminate/database": "^5.7|^6.20|^7.30|^8.20|^9.0|^10.0",
41-
"illuminate/console": "^5.7|^6.20|^7.30|^8.20|^9.0|^10.0"
38+
"php": "^7.3|^7.4|^8.0|^8.1|^8.2",
39+
"illuminate/support": "^5.7|^6.20|^7.30|^8.20|^9.0|^10.0|^11.0",
40+
"illuminate/database": "^5.7|^6.20|^7.30|^8.20|^9.0|^10.0|^11.0",
41+
"illuminate/console": "^5.7|^6.20|^7.30|^8.20|^9.0|^10.0|^11.0"
4242
},
4343
"require-dev": {
44-
"phpunit/phpunit": "^7.3|^8.5|^9.4|^10.0",
44+
"phpunit/phpunit": "^7.3|^8.5|^9.4|^10.0|^11.0",
4545
"php-mock/php-mock": "^2.0",
46-
"orchestra/testbench": "^3.8|^4.8|^5.7|^6.2|^7.0|^8.0",
46+
"orchestra/testbench": "^3.8|^4.8|^5.7|^6.2|^7.0|^8.0|^9.0",
4747
"umbrellio/code-style-php": "^1.0",
4848
"laravel/legacy-factories": "^1.0",
4949
"php-coveralls/php-coveralls": "^2.1",

phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
colors="true" processIsolation="false"
55
stopOnFailure="true"
66
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.1/phpunit.xsd"
7-
cacheDirectory=".phpunit.cache"
87
>
98
<coverage>
109
<include>

tests/functional/Console/RollbackMissingMigrationsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function rollbackSuccessful(array $before, array $after): void
5050
* @test
5151
* @dataProvider provideMigrations
5252
*/
53-
public function nothingToRollback(array $before): void
53+
public function nothingToRollback(array $before, array $after): void
5454
{
5555
$this->assertSame($before, $this->getMigrations());
5656
$this->rollback(self::DATABASE_PATH . 'old_migrations', self::DATABASE_PATH . 'old_migrations');

0 commit comments

Comments
 (0)