@@ -36,7 +36,7 @@ public function __construct(
36
36
* @throws InvariantViolation
37
37
* @throws SerializationError
38
38
*/
39
- public function isValidated (Schema $ schema , DocumentNode $ ast , array $ rules = null ): bool
39
+ public function isValidated (Schema $ schema , DocumentNode $ ast , ? array $ rules = null ): bool
40
40
{
41
41
$ key = $ this ->buildKey ($ schema , $ ast );
42
42
@@ -52,7 +52,7 @@ public function isValidated(Schema $schema, DocumentNode $ast, array $rules = nu
52
52
* @throws InvariantViolation
53
53
* @throws SerializationError
54
54
*/
55
- public function markValidated (Schema $ schema , DocumentNode $ ast , array $ rules = null ): void
55
+ public function markValidated (Schema $ schema , DocumentNode $ ast , ? array $ rules = null ): void
56
56
{
57
57
$ key = $ this ->buildKey ($ schema , $ ast );
58
58
@@ -67,7 +67,7 @@ public function markValidated(Schema $schema, DocumentNode $ast, array $rules =
67
67
* @throws InvariantViolation
68
68
* @throws SerializationError
69
69
*/
70
- private function buildKey (Schema $ schema , DocumentNode $ ast , array $ rules = null ): string
70
+ private function buildKey (Schema $ schema , DocumentNode $ ast , ? array $ rules = null ): string
71
71
{
72
72
/**
73
73
* This default strategy generates a cache key by hashing the printed schema and AST.
@@ -78,6 +78,6 @@ private function buildKey(Schema $schema, DocumentNode $ast, array $rules = null
78
78
$ astHash = md5 (serialize ($ ast ));
79
79
$ rulesHash = md5 (serialize ($ rules ));
80
80
81
- return "graphql_validation_ {$ schemaHash }_ {$ astHash }_ $ rulesHash " ;
81
+ return "graphql_validation_ {$ schemaHash }_ {$ astHash }_ { $ rulesHash} " ;
82
82
}
83
83
}
0 commit comments