From 0ac6bc966b51cdb85fbbf7b4eee660f0b7d052e9 Mon Sep 17 00:00:00 2001 From: Akihito Koriyama Date: Wed, 23 Oct 2024 11:41:24 +0900 Subject: [PATCH] fixup! Make koriym/json-schema-faker package optional --- src/JsonSchema/JsonSchemaExceptionFakeHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/JsonSchema/JsonSchemaExceptionFakeHandler.php b/src/JsonSchema/JsonSchemaExceptionFakeHandler.php index ebd9e38c..0a0ab962 100644 --- a/src/JsonSchema/JsonSchemaExceptionFakeHandler.php +++ b/src/JsonSchema/JsonSchemaExceptionFakeHandler.php @@ -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 $fakeObject */