Skip to content

Commit 647f42e

Browse files
PHP 8.4 support (#75)
1 parent 416ca2a commit 647f42e

9 files changed

+11
-6
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
/phpstan-baseline.neon export-ignore
1010
/phpstan.neon.dist export-ignore
1111
/phpunit.xml.dist export-ignore
12+
/psalm-baseline.xml export-ignore
1213
/psalm.xml export-ignore
1314
/README.md export-ignore
1415
/vendor-bin export-ignore

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
14+
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
1515

1616
steps:
1717
- name: Checkout Code

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
"require-dev": {
2222
"bamarni/composer-bin-plugin": "^1.8.2",
23-
"phpunit/phpunit": "^8.5.34 || ^9.6.13 || ^10.4.2"
23+
"phpunit/phpunit": "^8.5.39 || ^9.6.20 || ^10.5.28"
2424
},
2525
"autoload": {
2626
"psr-4": {

phpstan-baseline.neon

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ parameters:
2121
path: src/PhpOption/Option.php
2222

2323
-
24-
message: "#^Parameter \\#2 \\$callback of function array_reduce expects callable\\(mixed, mixed\\)\\: mixed, Closure\\(mixed, PhpOption\\\\Option\\)\\: mixed given\\.$#"
24+
message: "#^Parameter \\#2 \\$callback of function array_reduce expects callable\\(bool\\|TReturn, mixed\\)\\: \\(bool\\|TReturn\\), Closure\\(mixed, PhpOption\\\\Option\\)\\: \\(bool\\|TReturn\\) given\\.$#"
2525
count: 1
2626
path: src/PhpOption/Option.php
2727

phpstan.neon.dist

-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ parameters:
55
level: max
66
paths:
77
- src
8-
checkGenericClassInNonGenericObjectType: false

psalm-baseline.xml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<files psalm-version="5.25.0@01a8eb06b9e9cc6cfb6a320bf9fb14331919d505"/>

psalm.xml

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
66
xmlns="https://getpsalm.org/schema/config"
77
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
8+
errorBaseline="psalm-baseline.xml"
9+
findUnusedBaselineEntry="true"
10+
findUnusedCode="false"
811
>
912
<projectFiles>
1013
<directory name="src" />

vendor-bin/phpstan/composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"require": {
3-
"phpstan/phpstan": "1.10.41"
3+
"phpstan/phpstan": "1.11.7"
44
},
55
"config": {
66
"preferred-install": "dist"

vendor-bin/psalm/composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"require": {
3-
"psalm/phar": "5.15.0"
3+
"psalm/phar": "5.25.0"
44
},
55
"config": {
66
"preferred-install": "dist"

0 commit comments

Comments
 (0)