Skip to content

Commit

Permalink
fixed static call issues
Browse files Browse the repository at this point in the history
  • Loading branch information
romalytvynenko committed Dec 20, 2024
1 parent 423dee2 commit bd7aeda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Scramble.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Support/OperationExtensions/RequestBodyExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit bd7aeda

Please sign in to comment.