Skip to content

Commit

Permalink
Merge pull request #598 from ergebnis/fix/readme
Browse files Browse the repository at this point in the history
Fix: Update `README.md`
  • Loading branch information
localheinz authored Dec 29, 2021
2 parents 4509b71 + f863f66 commit 54e8f9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ exists at `/schema/example.json`.
<?php

use Ergebnis\Json\Normalizer;
use Ergebnis\Json\SchemaValidator;
use JsonSchema\SchemaStorage;
use JsonSchema\Validator;

$encoded = <<<'JSON'
{
Expand All @@ -350,7 +350,7 @@ $json = Normalizer\Json::fromEncoded($encoded);
$normalizer = new Normalizer\SchemaNormalizer(
'file:///schema/example.json',
new SchemaStorage(),
new Normalizer\Validator\SchemaValidator(new Validator())
new SchemaValidator\SchemaValidator()
);

$normalized = $normalizer->normalize($json);
Expand Down

0 comments on commit 54e8f9f

Please sign in to comment.