File tree 4 files changed +17
-1
lines changed
4 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,11 @@ parameters:
40
40
count : 1
41
41
path : src/Annotations/Schema.php
42
42
43
+ -
44
+ message : " #^Attribute class AllowDynamicProperties does not exist\\ .$#"
45
+ count : 1
46
+ path : src/Context.php
47
+
43
48
-
44
49
message : " #^Ternary operator condition is always true\\ .$#"
45
50
count : 1
Original file line number Diff line number Diff line change 18
18
</projectFiles >
19
19
20
20
<issueHandlers >
21
+ <UndefinedAttributeClass >
22
+ <errorLevel type =" suppress" >
23
+ <referencedClass name =" AllowDynamicProperties" />
24
+ <file name =" src/Context.php" />
25
+ </errorLevel >
26
+ </UndefinedAttributeClass >
21
27
</issueHandlers >
22
28
</psalm >
Original file line number Diff line number Diff line change 8
8
9
9
use OpenApi \Annotations \OpenApi ;
10
10
use OpenApi \Loggers \DefaultLogger ;
11
+ use Psr \Log \LoggerInterface ;
11
12
12
13
/**
13
14
* Context.
44
45
* the serializer
45
46
* @property Annotations\AbstractAnnotation|null $nested
46
47
* @property Annotations\AbstractAnnotation[]|null $annotations
47
- * @property \Psr\Log\ LoggerInterface|null $logger Guaranteed to be set when using the `Generator`
48
+ * @property LoggerInterface|null $logger Guaranteed to be set when using the `Generator`
48
49
* @property array|null $scanned Details of file scanner when using ReflectionAnalyser
49
50
* @property string|null $version The OpenAPI version in use
50
51
*/
52
+ #[\AllowDynamicProperties]
51
53
class Context
52
54
{
53
55
/**
Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ public function testVendorFields(): void
22
22
$ this ->assertSame (123 , $ output ->$ prefixedProperty );
23
23
}
24
24
25
+ /**
26
+ * @requires PHP < 8.2
27
+ */
25
28
public function testInvalidField (): void
26
29
{
27
30
$ this ->assertOpenApiLogEntryContains ('Unexpected field "doesnot" for @OA\Get(), expecting ' );
You can’t perform that action at this time.
0 commit comments