From 3ccf2f953bfdf444678310973f85e3796f30f1c9 Mon Sep 17 00:00:00 2001 From: Franck DAKIA Date: Thu, 18 May 2023 20:21:02 +0000 Subject: [PATCH 1/2] Fixes type errors --- app/Controllers/Controller.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/Controllers/Controller.php b/app/Controllers/Controller.php index 157ba23..5a0a755 100644 --- a/app/Controllers/Controller.php +++ b/app/Controllers/Controller.php @@ -4,11 +4,13 @@ use Bow\Http\Request; use Bow\Http\Response; -use Bow\Configuration\Loader as Config; use Bow\Database\Database; use Bow\Validation\Validate; use Bow\Validation\Validator; use Bow\Queue\ProducerService; +use Bow\Contracts\ResponseInterface; +use Bow\Configuration\Loader as Config; +use Bow\Database\QueryBuilder; class Controller { @@ -28,9 +30,9 @@ public function queue(ProducerService $producer) * * @param mixed $url * @param array $parameters - * @return mixed + * @return ResponseInterface */ - public function redirect($url = null, array $parameters = []): RedirectInterface + public function redirect($url = null, array $parameters = []): ResponseInterface { if (is_null($url)) { return redirect(); @@ -101,9 +103,9 @@ public function db(?string $name = null, ?callable $cb = null) * * @param $name * @param string $connexion - * @return \Bow\Database\Query\Builder + * @return QueryBuilder */ - public function table(string $name, ?string $connexion = null): \Bow\Database\Query\Builder + public function table(string $name, ?string $connexion = null): QueryBuilder { return table($name, $connexion); } From e57aa173cd198fdae63613164533b954a64dd0ca Mon Sep 17 00:00:00 2001 From: Franck DAKIA Date: Thu, 18 May 2023 20:21:21 +0000 Subject: [PATCH 2/2] Set the APP_DEBUG mode variable --- .env.example.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.env.example.json b/.env.example.json index 85cf599..785e353 100644 --- a/.env.example.json +++ b/.env.example.json @@ -1,6 +1,7 @@ { - "APP_ENV": "development", "APP_NAME": "Bow Application", + "APP_ENV": "development", + "APP_DEBUG": true, "APP_KEY": "", "APP_URL": "http://localhost:5000",