Skip to content

Commit 0705dd9

Browse files
Merge pull request #39 from MauricioFauth/php72
Bump PHP minimum version to 7.2.0
2 parents ad36438 + 3445c43 commit 0705dd9

File tree

5 files changed

+11
-16
lines changed

5 files changed

+11
-16
lines changed

.github/workflows/lint-and-analyse-php.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
- name: Checkout code
1212
uses: actions/checkout@v4
1313

14-
- name: Set up PHP 7.1
14+
- name: Set up PHP 7.2
1515
uses: shivammathur/setup-php@v2
1616
with:
17-
php-version: 7.1
17+
php-version: 7.2
1818
tools: composer:v2
1919

2020
- name: Validate composer.json and composer.lock
@@ -34,10 +34,10 @@ jobs:
3434
- name: Checkout code
3535
uses: actions/checkout@v4
3636

37-
- name: Set up PHP 7.1
37+
- name: Set up PHP 7.2
3838
uses: shivammathur/setup-php@v2
3939
with:
40-
php-version: 7.1
40+
php-version: 7.2
4141
tools: composer:v2
4242
extensions: dbase
4343

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
continue-on-error: ${{ matrix.experimental }}
1212
strategy:
1313
matrix:
14-
php-version: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
14+
php-version: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
1515
php-extensions: ['dbase', ':dbase']
1616
os: [ubuntu-latest]
1717
experimental: [false]

.scrutinizer.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ build:
1818
analysis:
1919
environment:
2020
php:
21-
version: 7.1
21+
version: 7.2
2222
pecl_extensions:
2323
- dbase
2424
dependencies:

composer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@
3030
]
3131
},
3232
"require": {
33-
"php": "^7.1 || ^8.0"
33+
"php": "^7.2 || ^8.0"
3434
},
3535
"suggest": {
3636
"ext-dbase": "For dbf files parsing"
3737
},
3838
"require-dev": {
3939
"phpmyadmin/coding-standard": "^3.0.0",
40-
"phpstan/phpstan": "^1.4.10",
41-
"phpstan/phpstan-phpunit": "^1.0",
42-
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.6 || ^10.3"
40+
"phpstan/phpstan": "^1.12",
41+
"phpstan/phpstan-phpunit": "^1.4",
42+
"phpunit/phpunit": "^8.5 || ^9.6 || ^10.5"
4343
},
4444
"autoload": {
4545
"psr-4": {

phpstan-baseline.neon

+1-6
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,13 @@ parameters:
3535
count: 1
3636
path: src/ShapeFile.php
3737

38-
-
39-
message: "#^Parameter \\#1 \\$string of function substr expects string, string\\|false given\\.$#"
40-
count: 6
41-
path: src/ShapeFile.php
42-
4338
-
4439
message: "#^Parameter \\#1 \\$type of static method PhpMyAdmin\\\\ShapeFile\\\\Util\\:\\:nameShape\\(\\) expects int, int\\|false given\\.$#"
4540
count: 1
4641
path: src/ShapeFile.php
4742

4843
-
49-
message: "#^Parameter \\#2 \\$length of function fread expects int\\<0, max\\>, int given\\.$#"
44+
message: "#^Parameter \\#2 \\$length of function fread expects int\\<1, max\\>, int given\\.$#"
5045
count: 1
5146
path: src/ShapeFile.php
5247

0 commit comments

Comments
 (0)