Skip to content

Commit e84144e

Browse files
authored
Merge pull request #17 from bram123/upgrade_php
Add PHP 8.1 to workflow
2 parents a4e86b0 + 112bde2 commit e84144e

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
php-versions: ['7.1', '7.2', '7.3', '7.4', '8.0']
15+
php-versions: ['7.4', '8.0', '8.1']
1616
composer-flags: ['', '--prefer-lowest']
1717
steps:
1818
- uses: actions/checkout@v2
@@ -35,7 +35,7 @@ jobs:
3535
- name: Setup PHP
3636
uses: shivammathur/setup-php@v2
3737
with:
38-
php-version: 7.1
38+
php-version: 7.4
3939
coverage: none
4040
- name: Install dependencies
4141
run: composer install --prefer-dist --no-progress --no-suggest

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%207.1-8892BF)](https://php.net/)
1+
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%207.4-8892BF)](https://php.net/)
22
[![Minimum Symfony Version](https://img.shields.io/badge/symfony-%3E%3D%204.4-brightgreen)](https://symfony.com/doc/current/validation.html)
33
![Run tests](https://github.com/123inkt/symfony-request-validation/workflows/Run%20tests/badge.svg)
44

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@
1515
}
1616
},
1717
"require": {
18-
"php": ">=7.1",
19-
"symfony/http-foundation": "^4.2 || 5.*",
20-
"symfony/validator": "^4.3 || 5.*",
18+
"php": ">=7.4",
19+
"symfony/http-foundation": "5.*",
20+
"symfony/validator": "5.*",
2121
"digitalrevolution/symfony-validation-shorthand": "^1.0.4"
2222
},
2323
"require-dev": {
2424
"roave/security-advisories": "dev-latest",
2525
"squizlabs/php_codesniffer": "^3.6",
2626
"phpmd/phpmd": "@stable",
27-
"phpunit/phpunit": "7.5.* || 8.5.* || 9.5.*",
27+
"phpunit/phpunit": "9.5.*",
2828
"phpstan/phpstan": "0.12.*",
2929
"phpstan/phpstan-phpunit": "0.12.*",
3030
"phpstan/phpstan-symfony": "0.12.*",

phpunit.xml.dist

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/7.5/phpunit.xsd"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
44
bootstrap="vendor/autoload.php"
55
forceCoversAnnotation="true"
66
failOnRisky="true"
@@ -16,9 +16,9 @@
1616
<directory>tests/Unit</directory>
1717
</testsuite>
1818
</testsuites>
19-
<filter>
20-
<whitelist processUncoveredFilesFromWhitelist="true">
19+
<coverage processUncoveredFiles="true">
20+
<include>
2121
<directory suffix=".php">src/</directory>
22-
</whitelist>
23-
</filter>
22+
</include>
23+
</coverage>
2424
</phpunit>

0 commit comments

Comments
 (0)