added missing named parameters, added strict_types

Signed-off-by: tracer <tracer@24unix.net>
This commit is contained in:
tracer 2022-01-26 18:48:42 +01:00
parent 383dc29ba5
commit fe1c698935

View File

@ -1,13 +1,14 @@
<?php
<?php declare(strict_types=1);
namespace App\Controller;
// 61eec33c8829a.91a1d27d70ba26710092381a073d9e546597dff6033de272
error_reporting(error_level: E_ALL);
require dirname(path: __DIR__) . '/vendor/autoload.php';
// read config
$configFile = dirname(path: __DIR__) . "/config.json";
$configJSON = file_get_contents($configFile);
$config = json_decode($configJSON, associative: true);
$configJSON = file_get_contents(filename: $configFile);
$config = json_decode(json: $configJSON, associative: true);
// TODO only valid clients?