From bd7aeda823765565adc79bbb1a2b7d066b77c318 Mon Sep 17 00:00:00 2001 From: Roman Lytvynenko Date: Fri, 20 Dec 2024 12:12:41 +0200 Subject: [PATCH] fixed static call issues --- src/Scramble.php | 2 +- src/Support/OperationExtensions/RequestBodyExtension.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Scramble.php b/src/Scramble.php index 0c77e68c..f761c3e8 100755 --- a/src/Scramble.php +++ b/src/Scramble.php @@ -199,7 +199,7 @@ public static function throwOnError(bool $throw = true): void static::$throwOnError = $throw; } - public function shouldThrowOnError(): bool + public static function shouldThrowOnError(): bool { return static::$throwOnError; } diff --git a/src/Support/OperationExtensions/RequestBodyExtension.php b/src/Support/OperationExtensions/RequestBodyExtension.php index 72652fe7..bb5c0de7 100644 --- a/src/Support/OperationExtensions/RequestBodyExtension.php +++ b/src/Support/OperationExtensions/RequestBodyExtension.php @@ -3,6 +3,7 @@ namespace Dedoc\Scramble\Support\OperationExtensions; use Dedoc\Scramble\Extensions\OperationExtension; +use Dedoc\Scramble\Scramble; use Dedoc\Scramble\Support\Generator\Combined\AllOf; use Dedoc\Scramble\Support\Generator\Operation; use Dedoc\Scramble\Support\Generator\Parameter; @@ -17,7 +18,6 @@ use Dedoc\Scramble\Support\OperationExtensions\RulesExtractor\RequestMethodCallsExtractor; use Dedoc\Scramble\Support\OperationExtensions\RulesExtractor\ValidateCallExtractor; use Dedoc\Scramble\Support\RouteInfo; -use Illuminate\Routing\Route; use Illuminate\Support\Arr; use Illuminate\Support\Collection; use Illuminate\Support\Str;