Skip to content

Commit

Permalink
Added compatibility with Laravel 10, dropped support for PHP 8.0 and …
Browse files Browse the repository at this point in the history
…Laravel 8.2 (EOL).
  • Loading branch information
lightluke committed Mar 16, 2023
1 parent d2c696d commit 8c9ccb9
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
php-version: '8.1'
coverage: pcov

- name: Validate composer.json
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ composer.lock
vendor
.php-cs-fixer.cache
.phpunit.result.cache
.phpunit.cache
1 change: 1 addition & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
'@Symfony:risky' => true,
'@PHP80Migration' => true,
'@PHP80Migration:risky' => true,
'@PHP81Migration' => true,
'phpdoc_line_span' => [
'const' => 'single',
'method' => 'single',
Expand Down
18 changes: 9 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,18 @@
]
},
"require-dev": {
"nunomaduro/larastan": "^1.0.0",
"friendsofphp/php-cs-fixer": "^3.0",
"phpstan/extension-installer": "^1.1",
"phpunit/phpunit": "^9.5",
"nunomaduro/larastan": "^2.5.0",
"friendsofphp/php-cs-fixer": "^3.15",
"phpstan/extension-installer": "^1.2",
"phpunit/phpunit": "^10.0",
"rregeer/phpunit-coverage-check": "^0.3.1",
"orchestra/testbench": "^7.0.0"
"orchestra/testbench": "^8.0.0"
},
"require": {
"laravel/framework": "^8.20|^9.0",
"laravel/framework": "^9.0|^10.0",
"league/openapi-psr7-validator": "^0.17",
"nyholm/psr7": "^1.3",
"symfony/psr-http-message-bridge": "^2.0",
"php": "^8.0|^8.1"
"nyholm/psr7": "^1.5",
"symfony/psr-http-message-bridge": "^2.1",
"php": "^8.1|^8.2"
}
}
4 changes: 2 additions & 2 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" colors="true">
<coverage processUncoveredFiles="true">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" colors="true" cacheDirectory=".phpunit.cache">
<coverage includeUncoveredFiles="true">
<include>
<directory suffix=".php">src</directory>
</include>
Expand Down
2 changes: 1 addition & 1 deletion resources/docker/workspace/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.0-cli-alpine
FROM php:8.1-cli-alpine

ARG PUID=1000
ARG PGID=1000
Expand Down

0 comments on commit 8c9ccb9

Please sign in to comment.