Skip to content

Commit

Permalink
Fix "The VersionStatement $permit would be set to true always"
Browse files Browse the repository at this point in the history
  • Loading branch information
reindert-vetter committed Dec 21, 2021
1 parent c199ff4 commit ecea3f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Middleware/ApiVersionControl.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ public function __construct(array $config = null)
public function handle(Request $request, Closure $next): SymfonyResponse
{
$pipes = MiddlewareCollection::createFromConfig($request, $this->config)
->permitVersionStatement()
->filterByVersionCompare()
->permitVersionStatement()
->flatten()
->rejectNonPipe()
->unique()
Expand Down

0 comments on commit ecea3f1

Please sign in to comment.