Skip to content

Commit

Permalink
fix: deprecation warning with Str::lower() (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
Starfox64 authored Feb 3, 2025
1 parent 033c354 commit a92b4ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Builders/Paths/OperationsBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function build(array|Collection $routes): array
$security = $this->securityBuilder->build($route);

$operation = Operation::create()
->action(Str::lower($operationAttribute->method) ?: $route->method)
->action(Str::lower($operationAttribute->method ?: $route->method))
->tags(...$tags)
->deprecated($this->isDeprecated($route->actionDocBlock))
->description($route->actionDocBlock->getDescription()->render() !== '' ? $route->actionDocBlock->getDescription()->render() : null)
Expand Down

0 comments on commit a92b4ce

Please sign in to comment.