Skip to content

Commit

Permalink
fixup! Make koriym/json-schema-faker package optional
Browse files Browse the repository at this point in the history
  • Loading branch information
koriym committed Oct 23, 2024
1 parent 463ff70 commit 0ac6bc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JsonSchema/JsonSchemaExceptionFakeHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function handle(ResourceObject $ro, JsonSchemaException $e, string $schem
private function fakeResponse(string $schemaFile): array
{
if (! class_exists(Faker::class)) {
throw new LogicException('JSONSchemaFaker\Faker not installed. Please run "composer require koriym/json-schema-faker --dev". See more at https://github.com/bearsunday/BEAR.Resource/wiki/json_schema_faker_required'); // @codeCoverageIgnore
throw new LogicException('"koriym/json-schema-faker" not installed. Please run "composer require koriym/json-schema-faker --dev". See more at https://github.com/bearsunday/BEAR.Resource/wiki/json_schema_faker_required'); // @codeCoverageIgnore
}

/** @var array<int|string, mixed> $fakeObject */
Expand Down

0 comments on commit 0ac6bc9

Please sign in to comment.