Skip to content

Commit 2baa52b

Browse files
committed
Require PHP 8.1
1 parent e1b5a12 commit 2baa52b

File tree

5 files changed

+10
-19
lines changed

5 files changed

+10
-19
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
include:
16-
- php-version: '7.4'
16+
- php-version: '8.1'
1717
composer-flags: '--prefer-stable --prefer-lowest'
1818
description: 'with lowest'
19-
- php-version: '8.0'
2019
- php-version: '8.1'
2120
- php-version: '8.2'
2221

@@ -26,7 +25,7 @@ jobs:
2625
coding-standards: true
2726

2827
#Static Analysis (min PHP version)
29-
- php-version: '7.4'
28+
- php-version: '8.1'
3029
description: 'with Static Analysis'
3130
static-analysis: true
3231

.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-
'@PHP74Migration' => true,
23-
'@PHP74Migration:risky' => true,
22+
'@PHP81Migration' => true,
23+
'@PHP80Migration:risky' => true,
2424
'@PHPUnit84Migration:risky' => true,
2525
'array_syntax' => ['syntax' => 'short'],
2626
'fopen_flags' => true,

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
},
1919
"extra": {
2020
"branch-alias": {
21-
"dev-master": "1.1.x-dev"
21+
"dev-master": "1.2.x-dev"
2222
}
2323
},
2424
"require": {
25-
"php": "^7.4|^8.0"
25+
"php": "^8.1"
2626
},
2727
"require-dev": {
2828
"friendsofphp/php-cs-fixer": "^3.0",

phpstan-baseline.neon

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,3 @@ parameters:
33
-
44
message: '#no value type specified in iterable type array#'
55
path: tests/
6-
- # PHP 8 is required
7-
message: '#testContainsOnlyScalarValuesInputError\(\) has parameter \$input with no type specified#'
8-
paths:
9-
- tests/ScalarValuesTest.php
10-
- # PHP 8 is required
11-
message: '#testFilterScalarValuesInputError\(\) has parameter \$input with no type specified#'
12-
paths:
13-
- tests/ScalarValuesTest.php

tests/ScalarValuesTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ public function getTestContainsOnlyScalarValuesProdiver(): array
5151
/**
5252
* @dataProvider getNotArrayInputProdiver
5353
*/
54-
public function testContainsOnlyScalarValuesInputError($input): void
54+
public function testContainsOnlyScalarValuesInputError(mixed $input): void
5555
{
5656
$this->expectException(\TypeError::class);
57-
ScalarValues::containsOnlyScalarValues($input);
57+
ScalarValues::containsOnlyScalarValues($input); // @phpstan-ignore-line
5858
}
5959

6060
public function getNotArrayInputProdiver(): array
@@ -101,9 +101,9 @@ public function getTestFilterScalarValuesProdiver(): array
101101
/**
102102
* @dataProvider getNotArrayInputProdiver
103103
*/
104-
public function testFilterScalarValuesInputError($input): void
104+
public function testFilterScalarValuesInputError(mixed $input): void
105105
{
106106
$this->expectException(\TypeError::class);
107-
ScalarValues::filterScalarValues($input);
107+
ScalarValues::filterScalarValues($input); // @phpstan-ignore-line
108108
}
109109
}

0 commit comments

Comments
 (0)