Skip to content

Commit 7079e58

Browse files
committed
Declare our minimum PHP version
So that composer will not update our dependencies to something that would not work with PHP 8.0. And so that PHPStan analyzes assuming we are running 8.0
1 parent cbffcbc commit 7079e58

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
"spreadsheet"
1313
],
1414
"config": {
15+
"platform": {
16+
"php" : "8.0.99"
17+
},
1518
"sort-packages": true,
1619
"allow-plugins": {
1720
"dealerdirect/phpcodesniffer-composer-installer": true

phpstan-baseline.neon

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,8 @@ parameters:
3939
message: "#^Offset 3 does not exist on array\\{int, int, int, int\\}\\|array\\{int, int\\}\\.$#"
4040
count: 1
4141
path: src/PhpSpreadsheet/Worksheet/Validations.php
42+
43+
-
44+
message: "#^Parameter \\#2 \\$value of function ini_set expects string, int given\\.$#"
45+
count: 1
46+
path: tests/bootstrap.php

0 commit comments

Comments
 (0)