Skip to content

Commit 1277bb3

Browse files
committed
use serialize
1 parent a745345 commit 1277bb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/PsrValidationCacheAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ private function buildKey(Schema $schema, DocumentNode $ast): string
6464
* the schema -- for example, a build-time hash, schema version number, or an environment-based identifier.
6565
*/
6666
$schemaHash = md5(SchemaPrinter::doPrint($schema));
67-
$astHash = md5($ast->__toString());
67+
$astHash = md5(serialize($ast));
6868

6969
return self::KEY_PREFIX . $schemaHash . '_' . $astHash;
7070
}

0 commit comments

Comments
 (0)