Skip to content

Commit f50521f

Browse files
committed
Require PHP ^7.4|^8.0
1 parent e3d2154 commit f50521f

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
include:
16-
- php-version: '7.2'
16+
- php-version: '7.4'
1717
composer-flags: '--prefer-stable --prefer-lowest'
1818
description: 'with lowest'
19-
- php-version: '7.2'
20-
- php-version: '7.4'
2119
- php-version: '8.0'
2220
- php-version: '8.1'
2321
- php-version: '8.2'
@@ -28,7 +26,7 @@ jobs:
2826
coding-standards: true
2927

3028
#Static Analysis (min PHP version)
31-
- php-version: '7.2'
29+
- php-version: '7.4'
3230
description: 'with Static Analysis'
3331
static-analysis: true
3432

.php-cs-fixer.dist.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
'@Symfony' => true,
2020
'@Symfony:risky' => true,
2121
'@DoctrineAnnotation' => true,
22-
'@PHP71Migration' => true,
23-
'@PHP71Migration:risky' => true,
22+
'@PHP74Migration' => true,
23+
'@PHP74Migration:risky' => true,
2424
'@PHPUnit84Migration:risky' => true,
2525
'array_syntax' => ['syntax' => 'short'],
2626
'fopen_flags' => true,

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
}
2323
},
2424
"require": {
25-
"php": "^7.2|^8.0"
25+
"php": "^7.4|^8.0"
2626
},
2727
"require-dev": {
2828
"friendsofphp/php-cs-fixer": "^3.0",

src/ScalarValues.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ public static function containsOnlyScalarValues(array $array): bool
2828

2929
public static function filterScalarValues(array $array): array
3030
{
31-
return array_filter($array, function ($child) {
32-
return \is_scalar($child);
33-
});
31+
return array_filter($array, fn ($child) => \is_scalar($child));
3432
}
3533
}

0 commit comments

Comments
 (0)