Skip to content

Commit a301212

Browse files
authored
feat(MPM-708): drop php7.4 support (#6)
1 parent 4a59246 commit a301212

4 files changed

Lines changed: 15 additions & 10 deletions

File tree

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22
"name": "jobcloud/avro-validator",
33
"license": "MIT",
44
"require": {
5-
"php": ">=7.3",
5+
"php": "^8.0",
66
"ext-json": "*",
7-
"symfony/console": "^5.1.5"
7+
"symfony/console": "^5.1.5|^6.0"
88
},
99
"require-dev": {
10-
"ergebnis/phpstan-rules": "^0.14.3",
10+
"ergebnis/phpstan-rules": "^1.0.0",
1111
"friends-of-phpspec/phpspec-code-coverage": "dev-master@dev",
1212
"phpspec/phpspec": "^6.2.1",
13-
"phpstan/phpstan": "^0.12.11",
14-
"phpstan/phpstan-deprecation-rules": "^0.12.2",
15-
"phpstan/phpstan-strict-rules": "^0.12.2",
13+
"phpstan/phpstan": "^1.9.0",
14+
"phpstan/phpstan-deprecation-rules": "^1.1.0",
15+
"phpstan/phpstan-strict-rules": "^1.4.0",
1616
"rregeer/phpunit-coverage-check": "^0.3.1",
1717
"squizlabs/php_codesniffer": "^3.4.2",
18-
"infection/infection": "^0.18",
19-
"infection/phpspec-adapter": "^0.1.1"
18+
"infection/infection": "^0.26",
19+
"infection/phpspec-adapter": "^0.2.1"
2020
},
2121
"autoload": {
2222
"psr-4": {

docker/dev/php/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:7.3-cli-alpine3.15
1+
FROM php:8.0-cli-alpine3.16
22

33
ARG HOST_USER_ID
44

phpstan.neon

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ parameters:
77
treatPhpDocTypesAsCertain: false
88
paths:
99
- app
10+
ignoreErrors:
11+
-
12+
message: '/Property [a-zA-Z\\]+::\$[a-zA-Z]+ is never read, only written\./'
13+
paths:
14+
- %currentWorkingDirectory%/src/Command/*
1015

1116
rules:
1217
- Ergebnis\PHPStan\Rules\Expressions\NoEmptyRule

src/Validator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ final class Validator implements ValidatorInterface
3333
private const INT_MAX_VALUE = 2147483647;
3434

3535
/**
36-
* @var int lower bound of long values: -(1 << 63)
36+
* @var float lower bound of long values: -(1 << 63)
3737
*/
3838
private const LONG_MIN_VALUE = -9223372036854775808;
3939

0 commit comments

Comments
 (0)