Skip to content

Commit

Permalink
Support for PHP 8.3. Dropped support for Laravel 9 (#11)
Browse files Browse the repository at this point in the history
* Support for PHP 8.3. Dropped support for Laravel 9
* Update phpunit.xml.dist
  • Loading branch information
pascalbaljet authored Jan 2, 2024
1 parent 01cc897 commit bd4cfb2
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 33 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [8.2, 8.1]
laravel: [10.*, 9.*]
php: [8.3, 8.2, 8.1]
laravel: [10.*]
db: [mysql, postgres, sqlite]
dependency-version: [prefer-lowest, prefer-stable]
include:
- laravel: 10.*
testbench: 8.*
- laravel: 9.*
testbench: 7.*

name: P${{ matrix.php }} - L${{ matrix.laravel }} - DB ${{ matrix.db }} - ${{ matrix.dependency-version }}

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Stop duplicating your Eloquent query scopes and constraints in PHP. This package

## Requirements

* PHP 8.0+
* Laravel 9.0
* PHP 8.1+
* Laravel 10.0

This package is tested with GitHub Actions using MySQL 8.0, PostgreSQL 10.8 and SQLite.

Expand Down
9 changes: 4 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@
}
],
"require": {
"php": "^8.1|^8.2",
"illuminate/support": "^9.0|^10.0",
"nesbot/carbon": "^2.66"
"php": "^8.1|^8.2|^8.3",
"illuminate/support": "^10.0"
},
"require-dev": {
"mockery/mockery": "^1.4.4",
"orchestra/testbench": "^7.0|^8.0",
"phpunit/phpunit": "^9.5"
"orchestra/testbench": "^8.0",
"phpunit/phpunit": "^10.4"
},
"autoload": {
"psr-4": {
Expand Down
27 changes: 5 additions & 22 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,29 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php"
backupGlobals="false"
backupStaticAttributes="false"
colors="true"
verbose="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
backupGlobals="false"
colors="true"
processIsolation="false"
stopOnFailure="false">
<testsuites>
<testsuite name="Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
<logging>
<log type="tap" target="build/report.tap"/>
<log type="junit" target="build/report.junit.xml"/>
<log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/>
<log type="coverage-text" target="build/coverage.txt"/>
<log type="coverage-clover" target="build/logs/clover.xml"/>
</logging>
</phpunit>
</phpunit>

0 comments on commit bd4cfb2

Please sign in to comment.