File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 20
20
"ext-bcmath" : " *" ,
21
21
"ext-mbstring" : " *" ,
22
22
"ext-fileinfo" : " *" ,
23
- "php" : " >=8.0 .0" ,
23
+ "php" : " >=8.1 .0" ,
24
24
"guzzlehttp/psr7" : " ^2.0" ,
25
25
"symfony/polyfill-intl-idn" : " ^1.23"
26
26
},
Original file line number Diff line number Diff line change 9
9
10
10
class StaticEvaluationConfig
11
11
{
12
- public /* readonly*/ SchemaPoolInterface $ schemaPool ;
12
+ public readonly SchemaPoolInterface $ schemaPool ;
13
13
14
14
/**
15
15
* @var DraftInterface[]
@@ -22,7 +22,7 @@ class StaticEvaluationConfig
22
22
* @param SchemaPoolInterface|null $schemaPool
23
23
*/
24
24
public function __construct (
25
- public /* readonly*/ DraftInterface $ defaultDraft ,
25
+ public readonly DraftInterface $ defaultDraft ,
26
26
array $ supportedDrafts = [],
27
27
?SchemaPoolInterface $ schemaPool = null
28
28
) {
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class RuntimeEvaluationContext
24
24
public function __construct (
25
25
object |bool $ schema ,
26
26
mixed &$ instance ,
27
- public /* readonly*/ StaticEvaluationContext $ staticEvaluationContext
27
+ public readonly StaticEvaluationContext $ staticEvaluationContext
28
28
) {
29
29
$ this ->schemaStack [0 ] = [
30
30
'schema ' => $ schema ,
Original file line number Diff line number Diff line change @@ -15,11 +15,11 @@ class RuntimeEvaluationResult
15
15
private ?bool $ evaluationResult = null ;
16
16
17
17
public function __construct (
18
- public /* readonly*/ int $ number ,
19
- public /* readonly*/ KeywordInterface $ keyword ,
20
- public /* readonly*/ string $ keywordLocation ,
21
- public /* readonly*/ string $ instanceLocation ,
22
- public /* readonly*/ ?string $ absoluteKeywordLocation
18
+ public readonly int $ number ,
19
+ public readonly KeywordInterface $ keyword ,
20
+ public readonly string $ keywordLocation ,
21
+ public readonly string $ instanceLocation ,
22
+ public readonly ?string $ absoluteKeywordLocation
23
23
) {}
24
24
25
25
public function setEvaluationResult (bool $ evaluationResult ): void
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class StaticEvaluationContext
16
16
17
17
public function __construct (
18
18
object |bool $ schema ,
19
- public /* readonly*/ StaticEvaluationConfig $ config
19
+ public readonly StaticEvaluationConfig $ config
20
20
) {
21
21
$ this ->draft = $ this ->config ->defaultDraft ;
22
22
$ this ->prioritizedSchemaKeywords = new \WeakMap ();
You can’t perform that action at this time.
0 commit comments