Skip to content

Commit

Permalink
feat: drop support for PHP < 8.1,
Browse files Browse the repository at this point in the history
bump min versions,
migrate phpunit.xml
  • Loading branch information
Chris8934 committed Jun 15, 2024
1 parent 4180dcd commit f9a1fad
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/psalm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
php-version: '8.1'
extensions: mbstring
coverage: none

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.4, 8.3, 8.2, 8.1, 8.0, 7.4]
php: [8.3, 8.2, 8.1]
stability: [prefer-lowest, prefer-stable]

name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@
}
],
"require": {
"php": "^7.4|^8.0",
"php": "^8.1",
"ext-mbstring": "*",
"spatie/enum": "^3.11"
},
"require-dev": {
"ext-json": "*",
"nesbot/carbon": "^2.63|^3.0",
"nesbot/carbon": "^3.5",
"larapack/dd": "^1.1",
"pestphp/pest": "^1.22",
"spatie/pest-plugin-snapshots": "^1.1",
"vimeo/psalm": "^4.13"
"pestphp/pest": "^2.34",
"spatie/pest-plugin-snapshots": "^2.1",
"vimeo/psalm": "^5.24"
},
"autoload": {
"psr-4": {
Expand Down
60 changes: 31 additions & 29 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,32 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php"
backupGlobals="false"
backupStaticAttributes="false"
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
bootstrap="vendor/autoload.php"
colors="true"
verbose="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<testsuites>
<testsuite name="Spatie 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"/>
<log type="coverage-text" target="build/coverage.txt"/>
<log type="coverage-clover" target="build/logs/clover.xml"/>
</logging>
<php>
<ini name="date.timezone" value="UTC"/>
</php>
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
cacheDirectory=".phpunit.cache">
<coverage>
<report>
<clover outputFile="build/logs/clover.xml"/>
<html outputDirectory="build/coverage"/>
<text outputFile="build/coverage.txt"/>
</report>
</coverage>

<testsuites>
<testsuite name="Spatie Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>

<logging>
<junit outputFile="build/report.junit.xml"/>
</logging>

<php>
<ini name="date.timezone" value="UTC"/>
</php>

<source>
<include>
<directory>src/</directory>
</include>
</source>
</phpunit>

0 comments on commit f9a1fad

Please sign in to comment.