From 11f34bcccc467b3b022e994dd0ee832433dd864d Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 5 Nov 2022 01:38:55 +0100 Subject: [PATCH] inspection fixes --- .github/workflows/main.yml | 6 ++++++ Dispatcher/Dispatcher.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 00b4bd9c8..1c615c4de 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -93,6 +93,12 @@ jobs: ref: develop repository: Karaka-Management/Resources path: Resources + - name: Run the action + uses: potatoqualitee/mssqlsuite@v1.5.1 + with: + install: sqlengine, sqlclient, sqlpackage, localdb + version: 2017 + sa-password: R00troot - name: Setup PHP, with composer and extensions uses: shivammathur/setup-php@master with: diff --git a/Dispatcher/Dispatcher.php b/Dispatcher/Dispatcher.php index 92dc52a88..72d66fa5d 100644 --- a/Dispatcher/Dispatcher.php +++ b/Dispatcher/Dispatcher.php @@ -129,7 +129,7 @@ final class Dispatcher implements DispatcherInterface $views[$controller] = $data === null ? $function() : $function(...$data); } elseif ($c === 2) { - $obj = $this->getController($dispatch[0]); + $obj = $this->getController($dispatch[0]); $views[$controller] = $data === null ? $obj->{$dispatch[1]}() : $obj->{$dispatch[1]}(...$data);