Skip to content

Commit 0def803

Browse files
PHP 8.4 support
1 parent cbc8960 commit 0def803

File tree

8 files changed

+28
-13
lines changed

8 files changed

+28
-13
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
strategy:
3535
max-parallel: 10
3636
matrix:
37-
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
37+
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
3838

3939
steps:
4040
- name: Set up PHP

phpstan-baseline.neon

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
parameters:
2+
ignoreErrors:
3+
-
4+
message: '#^Cannot cast mixed to string\.$#'
5+
identifier: cast.string
6+
count: 5
7+
path: src/UriTemplate.php
8+
9+
-
10+
message: '#^Method GuzzleHttp\\UriTemplate\\UriTemplate\:\:isAssoc\(\) has parameter \$array with no value type specified in iterable type array\.$#'
11+
identifier: missingType.iterableValue
12+
count: 1
13+
path: src/UriTemplate.php
14+
15+
-
16+
message: '#^Parameter \#1 \$matches of static method GuzzleHttp\\UriTemplate\\UriTemplate\:\:expandMatch\(\) expects array\<string\>, array given\.$#'
17+
identifier: argument.type
18+
count: 1
19+
path: src/UriTemplate.php

phpstan.neon.dist

-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
parameters:
22
level: max
3-
checkMissingIterableValueType: false
43
paths:
54
- src
6-
ignoreErrors:
7-
-
8-
message: "#^Cannot cast mixed to string\\.$#"
9-
count: 5
10-
path: src/UriTemplate.php

psalm-baseline.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<files psalm-version="5.15.0@5c774aca4746caf3d239d9c8cadb9f882ca29352">
2+
<files psalm-version="5.26.1@d747f6500b38ac4f7dfc5edbcae6e4b637d7add0">
33
<file src="src/UriTemplate.php">
44
<UndefinedFunction>
5-
<code>\preg_last_error_msg()</code>
5+
<code><![CDATA[\preg_last_error_msg()]]></code>
66
</UndefinedFunction>
77
</file>
88
</files>

psalm.xml

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
xmlns="https://getpsalm.org/schema/config"
77
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
88
errorBaseline="psalm-baseline.xml"
9+
findUnusedBaselineEntry="true"
10+
findUnusedCode="false"
911
>
1012
<projectFiles>
1113
<directory name="src" />

vendor-bin/php-cs-fixer/composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"require": {
33
"php": "^7.4 || ^8.0",
4-
"friendsofphp/php-cs-fixer": "3.52.1"
4+
"friendsofphp/php-cs-fixer": "3.68.5"
55
},
66
"config": {
77
"preferred-install": "dist"

vendor-bin/phpstan/composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"require": {
33
"php": "^7.4 || ^8.0",
4-
"phpstan/phpstan": "1.10.47",
5-
"phpstan/phpstan-deprecation-rules": "1.1.4"
4+
"phpstan/phpstan": "2.1.2",
5+
"phpstan/phpstan-deprecation-rules": "2.0.1"
66
},
77
"config": {
88
"preferred-install": "dist"

vendor-bin/psalm/composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"require": {
33
"php": "^7.4 || ^8.0",
4-
"psalm/phar": "5.16.0"
4+
"psalm/phar": "5.26.1"
55
},
66
"config": {
77
"preferred-install": "dist"

0 commit comments

Comments
 (0)