Skip to content

Commit 7c57f62

Browse files
committed
Upgrade minimum PHP to 7.2
1 parent 545c7de commit 7c57f62

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-24.04
1010
strategy:
1111
matrix:
12-
php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
12+
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
1313
name: PHP ${{ matrix.php }}
1414
steps:
1515
- uses: actions/checkout@v6
@@ -32,7 +32,7 @@ jobs:
3232
fetch-depth: 5
3333
- uses: shivammathur/setup-php@v2
3434
with:
35-
php-version: '7.1'
35+
php-version: '7.2'
3636
tools: composer:2
3737
coverage: none
3838
- run: composer update --no-progress --prefer-lowest

.php-cs-fixer.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
'@PhpCsFixer:risky' => true,
1717
'@PHP71Migration' => true,
1818
'@PHP71Migration:risky' => true,
19+
'@PHPUnit75Migration:risky' => true,
20+
'@PHPUnit7x5Migration:risky' => true,
21+
'@PHPUnit84Migration:risky' => true,
22+
'@PHPUnit8x4Migration:risky' => true,
1923
'array_syntax' => ['syntax' => 'short'],
2024
'php_unit_test_class_requires_covers' => false,
2125
'backtick_to_shell_exec' => true,

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@
2222
}
2323
],
2424
"require": {
25-
"php": "^7.1 || ^8.0",
25+
"php": "^7.2 || ^8.0",
2626
"ext-json": "*",
2727
"ext-pdo": "*"
2828
},
2929
"require-dev": {
3030
"friendsofphp/php-cs-fixer": "^3.0",
31-
"phpstan/phpstan": "^1.4",
31+
"phpstan/phpstan": "^1.12",
3232
"phpstan/phpstan-phpunit": "^1.0",
3333
"phpstan/phpstan-strict-rules": "^1.0",
34-
"phpunit/phpunit": "^7.0 || ^8.0 || ^9.0"
34+
"phpunit/phpunit": "^8.4 || ^9.0 || ^10.0"
3535
},
3636
"config": {
3737
"sort-packages": true

phpstan.neon

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ includes:
33
- vendor/phpstan/phpstan-phpunit/rules.neon
44
- vendor/phpstan/phpstan-strict-rules/rules.neon
55
parameters:
6-
checkMissingIterableValueType: false
76
reportUnmatchedIgnoredErrors: true
8-
treatPhpDocTypesAsCertain: false
7+
treatPhpDocTypesAsCertain: false
8+
ignoreErrors:
9+
-
10+
identifier: missingType.iterableValue

phpunit.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
44
bootstrap="vendor/autoload.php"
55
colors="true">
6-
<coverage>
6+
<source>
77
<include>
88
<directory suffix=".php">lib</directory>
99
</include>
10-
</coverage>
10+
</source>
1111
<testsuites>
1212
<testsuite name="mc-google-visualization test suite">
1313
<directory>tests</directory>

0 commit comments

Comments
 (0)