Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/composer/pestphp/pest-2.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyTWF authored Aug 19, 2023
2 parents 449b971 + a9aa34c commit cf007d5
Show file tree
Hide file tree
Showing 7 changed files with 483 additions and 148 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ["8.1"]
php: ["8.2"]
composer: ["v2"]
steps:
- name: Checkout Code
Expand Down
5 changes: 3 additions & 2 deletions app/Http/Controllers/PluginApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use App\Models\FlightInformationRegion;
use App\Repository\FlowMeasureRepository;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

class PluginApiController
{
Expand All @@ -19,7 +20,7 @@ public function __construct(FlowMeasureRepository $flowMeasureRepository)
$this->flowMeasureRepository = $flowMeasureRepository;
}

public function __invoke(): JsonResponse
public function __invoke(Request $request): JsonResponse
{
return response()->json(
[
Expand All @@ -28,7 +29,7 @@ public function __invoke(): JsonResponse
FlightInformationRegion::all()
),
'flow_measures' => FlowMeasureResource::collection(
$this->flowMeasureRepository->getApiRelevantFlowMeasures(false)
$this->flowMeasureRepository->getApiRelevantFlowMeasures($request->query('deleted', '0') === '1')
),
]
);
Expand Down
20 changes: 10 additions & 10 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ version: '3'
services:
laravel.test:
build:
context: ./vendor/laravel/sail/runtimes/8.1
context: ./vendor/laravel/sail/runtimes/8.2
dockerfile: Dockerfile
args:
WWWGROUP: '${WWWGROUP}'
image: sail-8.1/app
image: sail-8.2/app
extra_hosts:
- 'host.docker.internal:host-gateway'
ports:
Expand Down
Loading

0 comments on commit cf007d5

Please sign in to comment.