Skip to content

Commit 78c7f41

Browse files
authored
Merge pull request #31 from bram123/upgrade_php
Add PHP 8.1 to workflow
2 parents 5827baf + 09639c0 commit 78c7f41

File tree

4 files changed

+13
-14
lines changed

4 files changed

+13
-14
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%207.1-8892BF)](https://php.net/)
2-
[![Minimum Symfony Version](https://img.shields.io/badge/symfony-%3E%3D%204.4-brightgreen)](https://symfony.com/doc/current/validation.html)
1+
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%207.4-8892BF)](https://php.net/)
2+
[![Minimum Symfony Version](https://img.shields.io/badge/symfony-%3E%3D%205.0-brightgreen)](https://symfony.com/doc/current/validation.html)
33
![Run tests](https://github.com/123inkt/symfony-validation-shorthand/workflows/Run%20tests/badge.svg)
44

55
# Symfony Validation Shorthand

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
}
1616
},
1717
"require": {
18-
"php": ">=7.1",
19-
"symfony/validator": "^4.3 || 5.*",
18+
"php": ">=7.4",
19+
"symfony/validator": "5.*",
2020
"symfony/polyfill-php80": "^1.16"
2121
},
2222
"require-dev": {
2323
"roave/security-advisories": "dev-latest",
2424
"squizlabs/php_codesniffer": "^3.6",
2525
"phpmd/phpmd": "@stable",
26-
"phpunit/phpunit": "7.5.* || 8.5.* || 9.5.*",
26+
"phpunit/phpunit": "^9.5",
2727
"phpstan/phpstan": "0.12.*",
2828
"phpstan/phpstan-phpunit": "0.12.*",
2929
"phpstan/phpstan-symfony": "0.12.*",

phpunit.xml.dist

Lines changed: 6 additions & 7 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"
@@ -9,8 +9,7 @@
99
beStrictAboutOutputDuringTests="true"
1010
beStrictAboutResourceUsageDuringSmallTests="true"
1111
beStrictAboutTodoAnnotatedTests="true"
12-
executionOrder="defects"
13-
>
12+
executionOrder="defects">
1413
<testsuites>
1514
<testsuite name="integration">
1615
<directory>tests/Integration</directory>
@@ -19,9 +18,9 @@
1918
<directory>tests/Unit</directory>
2019
</testsuite>
2120
</testsuites>
22-
<filter>
23-
<whitelist processUncoveredFilesFromWhitelist="true">
21+
<coverage processUncoveredFiles="true">
22+
<include>
2423
<directory suffix=".php">src</directory>
25-
</whitelist>
26-
</filter>
24+
</include>
25+
</coverage>
2726
</phpunit>

0 commit comments

Comments
 (0)