Skip to content

Commit 6abfc0c

Browse files
authored
Drop support for PHP 7.3 (#72)
1 parent 0795b7d commit 6abfc0c

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

.github/workflows/code-quality.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
matrix:
1717
php-version:
18-
- "7.3"
18+
- "7.4"
1919

2020
steps:
2121
- name: "Checkout code"

.github/workflows/php-unit.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
php-version:
20-
- "7.3"
2120
- "7.4"
2221
- "8.0"
2322
- "8.1"
2423
- "8.2"
2524
- "8.3"
26-
- "8.4"
2725

2826
steps:
2927

@@ -48,7 +46,7 @@ jobs:
4846
files: coverage.xml
4947

5048
- name: Mapping test
51-
if: ${{ matrix.php-version == 7.4 }}
49+
if: ${{ matrix.php-version == 8.1 }}
5250
continue-on-error: true
5351
run: |
5452
php ./bin/fileeye-mimemap --version

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@
66
"homepage": "https://github.com/FileEye/MimeMap",
77
"license": "LGPL-3.0-or-later",
88
"require": {
9-
"php": ">=7.3"
9+
"php": ">=7.4"
1010
},
1111
"require-dev": {
1212
"composer-runtime-api": "^2.0.0",
1313
"phpunit/phpunit": "^9 | ^10",
14-
"squizlabs/php_codesniffer": ">=3.6",
14+
"squizlabs/php_codesniffer": ">=3.7",
1515
"sebastian/comparator": ">=4",
1616
"sebastian/diff": ">=4",
1717
"symfony/filesystem": ">=5.4",
1818
"symfony/console": ">=5.4",
1919
"symfony/var-dumper": ">=5.4",
2020
"symfony/yaml": ">=5.4",
21-
"phpstan/phpstan": "^1.2",
22-
"vimeo/psalm": "^4.23 | ^5"
21+
"phpstan/phpstan": "^1.10",
22+
"vimeo/psalm": "^5.15"
2323
},
2424
"autoload": {
2525
"psr-4": {

src/TypeParser.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ public static function parse(string $type_string, Type $type): void
4747
$sub = static::parseStringPart($type_string, $sub['end_offset'] + 1, ';');
4848
$tmp = explode('=', $sub['string'], 2);
4949
$p_name = trim($tmp[0]);
50-
$p_val = trim($tmp[1]);
51-
$p_val = str_replace('\\"', '"', $p_val);
50+
$p_val = str_replace('\\"', '"', trim($tmp[1] ?? ''));
5251
$type->addParameter($p_name, $p_val, $sub['comment']);
5352
}
5453
}

0 commit comments

Comments
 (0)