Skip to content

Commit

Permalink
Upgrade php 8.2 (#11)
Browse files Browse the repository at this point in the history
* upgrade php/laravel
  • Loading branch information
pvsaintpe committed Apr 25, 2024
1 parent 7dd31ef commit f294c2d
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 22 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@ env:
DB_PASSWORD: 'postgres'
DB_HOST: '127.0.0.1'

jobs:
jobs:
lint:
runs-on: '${{ matrix.operating_system }}'
timeout-minutes: 20
strategy:
timeout-minutes: 20
strategy:
matrix:
operating_system: [ubuntu-latest]
php_versions: ['7.4']
fail-fast: false
env:
env:
PHP_CS_FIXER_FUTURE_MODE: '0'
name: 'Lint PHP'
steps:
steps:
- name: 'Checkout'
uses: actions/checkout@v2
- name: 'Setup cache environment'
Expand All @@ -55,11 +55,11 @@ jobs:
key: '${{ steps.cache-env.outputs.key }}'
restore-keys: '${{ steps.cache-env.outputs.key }}'
- name: 'Setup PHP'
uses: shivammathur/setup-php@v2
with:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_versions }}
extensions: '${{ env.php_extensions }}'
ini-values: memory_limit=-1
ini-values: memory_limit=-1
tools: pecl, composer
coverage: none
- name: 'Setup problem matchers for PHP (aka PHP error logs)'
Expand All @@ -82,12 +82,6 @@ jobs:
laravel: ['^6.0']
php_versions: ['7.4']
include:
- operating_system: ubuntu-latest
postgres: '9.6'
php_versions: '7.3'
laravel: '^6.0'
experimental: true
coverage: false
- operating_system: ubuntu-latest
postgres: '10'
php_versions: '7.4'
Expand Down Expand Up @@ -118,6 +112,12 @@ jobs:
laravel: '^10.0'
experimental: false
coverage: false
- operating_system: ubuntu-latest
postgres: '15'
php_versions: '8.2'
laravel: '^11.0'
experimental: false
coverage: false
runs-on: '${{ matrix.operating_system }}'
services:
postgres:
Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@
}
},
"require": {
"php": "^7.3|^7.4|^8.0",
"illuminate/support": "^5.7|^6.20|^7.30|^8.20|^9.0|^10.0",
"illuminate/database": "^5.7|^6.20|^7.30|^8.20|^9.0|^10.0",
"illuminate/console": "^5.7|^6.20|^7.30|^8.20|^9.0|^10.0"
"php": "^7.3|^7.4|^8.0|^8.1|^8.2",
"illuminate/support": "^5.7|^6.20|^7.30|^8.20|^9.0|^10.0|^11.0",
"illuminate/database": "^5.7|^6.20|^7.30|^8.20|^9.0|^10.0|^11.0",
"illuminate/console": "^5.7|^6.20|^7.30|^8.20|^9.0|^10.0|^11.0"
},
"require-dev": {
"phpunit/phpunit": "^7.3|^8.5|^9.4|^10.0",
"phpunit/phpunit": "^7.3|^8.5|^9.4|^10.0|^11.0",
"php-mock/php-mock": "^2.0",
"orchestra/testbench": "^3.8|^4.8|^5.7|^6.2|^7.0|^8.0",
"orchestra/testbench": "^3.8|^4.8|^5.7|^6.2|^7.0|^8.0|^9.0",
"umbrellio/code-style-php": "^1.0",
"laravel/legacy-factories": "^1.0",
"php-coveralls/php-coveralls": "^2.1",
Expand Down
1 change: 0 additions & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
colors="true" processIsolation="false"
stopOnFailure="true"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.1/phpunit.xsd"
cacheDirectory=".phpunit.cache"
>
<coverage>
<include>
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/Console/RollbackMissingMigrationsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function rollbackSuccessful(array $before, array $after): void
* @test
* @dataProvider provideMigrations
*/
public function nothingToRollback(array $before): void
public function nothingToRollback(array $before, array $after): void
{
$this->assertSame($before, $this->getMigrations());
$this->rollback(self::DATABASE_PATH . 'old_migrations', self::DATABASE_PATH . 'old_migrations');
Expand Down

0 comments on commit f294c2d

Please sign in to comment.