Skip to content

Commit 28f4360

Browse files
Fix CI: suppress RepeatedField psalm errors, restore PHP 8.1 support (#1966)
1 parent 29066b4 commit 28f4360

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@
9898
"nyholm/psr7": "^1.4",
9999
"open-telemetry/dev-tools": "dev-main",
100100
"php-http/mock-client": "^1.5",
101-
"phpdocumentor/reflection-docblock": "^6.0",
102-
"phpspec/prophecy": "1.26.*",
101+
"phpdocumentor/reflection-docblock": "^5.3",
102+
"phpspec/prophecy": "1.22.*",
103103
"phpspec/prophecy-phpunit": "^2",
104104
"phpstan/phpstan": "^1.10.13",
105105
"phpstan/phpstan-mockery": "^1.1",

phpstan.neon.dist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ parameters:
5757
message: "#.*expects Google\\\\Protobuf\\\\RepeatedField.*#"
5858
paths:
5959
- src/Contrib/Otlp
60+
-
61+
message: "#Call to an undefined method Google\\\\Protobuf\\\\FieldDescriptor::getLabel\\(\\).#"
62+
paths:
63+
- src/Contrib/Otlp/ProtobufSerializer.php
6064
-
6165
message: "#^Call to (static )?method .* on an unknown class .*#"
6266
paths:

psalm.xml.dist

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@
3535
<referencedMethod name="Google\Protobuf\Internal\RepeatedField::offsetSet"/>
3636
</errorLevel>
3737
</UndefinedMethod>
38+
<UndefinedDocblockClass>
39+
<errorLevel type="suppress">
40+
<referencedClass name="Google\Protobuf\Internal\RepeatedField"/>
41+
</errorLevel>
42+
</UndefinedDocblockClass>
3843
<ArgumentTypeCoercion>
3944
<errorLevel type="suppress">
4045
<directory name="./examples"/>

0 commit comments

Comments
 (0)