From d28d3ba20d1e63917411c558a4b8970226a56c5d Mon Sep 17 00:00:00 2001 From: Akihito Koriyama Date: Tue, 25 Jun 2019 08:31:46 +0900 Subject: [PATCH] soothe phpstan --- src/JsonSchema/Interceptor/JsonSchemaInterceptor.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/JsonSchema/Interceptor/JsonSchemaInterceptor.php b/src/JsonSchema/Interceptor/JsonSchemaInterceptor.php index 56d324c3..024a9e48 100644 --- a/src/JsonSchema/Interceptor/JsonSchemaInterceptor.php +++ b/src/JsonSchema/Interceptor/JsonSchemaInterceptor.php @@ -11,7 +11,6 @@ use BEAR\Resource\Exception\JsonSchemaNotFoundException; use BEAR\Resource\JsonSchemaExceptionHandlerInterface; use BEAR\Resource\ResourceObject; -use http\Exception\RuntimeException; use function is_array; use function is_object; use function is_string; @@ -107,7 +106,7 @@ private function validateRo(ResourceObject $ro, string $schemaFile, JsonSchema $ $this->validate($target, $schemaFile); } - private function getTarget(\stdClass $json, JsonSchema $jsonSchema) + private function getTarget($json, JsonSchema $jsonSchema) { if ($jsonSchema->key === null) { return $json;