Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laravel 11 support #42

Merged
merged 9 commits into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php: [8.1, 8.2, 8.3]
php: [8.2, 8.3]
stability: ["--prefer-lowest", "--prefer-stable"]
steps:
- name: Checkout
Expand All @@ -29,9 +29,9 @@ jobs:
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-${{ matrix.php }}-${{ matrix.strategy }}-composer-${{ hashFiles('**/composer.json') }}
key: ${{ runner.os }}-${{ matrix.php }}-${{ matrix.stability }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: |
${{ runner.os }}-${{ matrix.php }}-${{ matrix.strategy }}-composer-
${{ runner.os }}-${{ matrix.php }}-${{ matrix.stability }}-composer-

- name: Install Composer dependencies
run: composer update --no-interaction --no-progress --optimize-autoloader --prefer-dist ${{ matrix.stability }}
Expand Down
7 changes: 7 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Upgrade Guide

## v5

### Upgrading from v4.3 to v5.0

- Minimum Laravel version increased from `10.46` to `11.0.3`.
- Minimum PHP version increased from `8.1` to `8.2`.

## v4

### Upgrading from v4.2 to v4.3
Expand Down
13 changes: 8 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
"license": "MIT",
"minimum-stability": "stable",
"require": {
"php": "^8.1",
"laravel/framework": "^10.46"
"php": "^8.2",
"laravel/framework": "^11.0.3"
},
"require-dev": {
"ext-json": "*",
"orchestra/testbench": "^8.0",
"phpunit/phpunit": "^9.6",
"laravel/pint": "1.13.9"
"orchestra/testbench": "^9.0",
"phpunit/phpunit": "^10.5",
"laravel/pint": "1.13.9",
"larastan/larastan": "^2.0"
},
"autoload": {
"psr-4": {
Expand All @@ -34,10 +35,12 @@
"scripts": {
"check-code": [
"@lint",
"@phpstan",
"@test"
],
"lint": "@php vendor/bin/pint --test",
"lint:fix": "@php vendor/bin/pint",
"phpstan": "@php vendor/bin/phpstan analyse",
"test": "@php vendor/bin/phpunit"
}
}
6 changes: 6 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
includes:
- vendor/larastan/larastan/extension.neon
parameters:
paths:
- src/
level: 8
19 changes: 8 additions & 11 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,28 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
bootstrap="vendor/autoload.php"
cacheResultFile=".phpunit.cache/test-results"
cacheDirectory=".phpunit.cache"
executionOrder="depends,defects"
forceCoversAnnotation="false"
beStrictAboutCoversAnnotation="true"
requireCoverageMetadata="false"
beStrictAboutCoverageMetadata="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutTodoAnnotatedTests="true"
failOnRisky="true"
failOnWarning="true"
verbose="true">
failOnWarning="true">
<testsuites>
<testsuite name="default">
<directory>tests</directory>
</testsuite>
</testsuites>

<coverage cacheDirectory=".phpunit.cache/code-coverage"
processUncoveredFiles="true">
<source restrictDeprecations="true" restrictNotices="true" restrictWarnings="true">
<include>
<directory suffix=".php">src</directory>
<directory>src</directory>
</include>
</coverage>
</source>

<php>
<env name="DB_CONNECTION" value="testing"/>
Expand Down
Loading