filePath = $filePath; } /** * Load config * * @return ConfigValues */ public function load(): ConfigValues { if (! is_readable($this->filePath)) { throw new ConfigLoaderException("Error reading config from file (check permissions?): " . $this->filePath); } // If file is empty, just return empty ConfigValues object if (trim(file_get_contents($this->filePath)) === "") { return new ConfigValues([]); } try { $config = null; ob_start(); /** @noinspection PhpIncludeInspection */ include $this->filePath; ob_end_clean(); // If the config file isn't an array, throw an exception /** @phpstan-ignore-next-line Ignore because we are doing some things that PHPStan doesn't understand */ if (!is_array($config)) { throw new ConfigLoaderException("Missing or invalid \$config array in file: " . $this->filePath); } /** @phpstan-ignore-next-line Ignore because we are doing some things that PHPStan doesn't understand */ return new ConfigValues($config); } catch (Throwable $e) { throw new ConfigLoaderException( "Error loading configuration from file: " . $this->filePath, $e->getCode(), $e ); } } } __halt_compiler();----SIGNATURE:----R/lg2dfrRUOfF2uz5Rl1bg0EZ5Hy3kzUbGR7AIpOV0eWfANaplUq5JdvlbvtXJsy+DAh3ol6l2zLxXOCA68K4AtJR7PH8wzkCrLxk/Q6B8kr29CcW1F4T/OUYEEqAGmEBy3IA/ul+suVha5JX5q90FYizgDcnGydt9KR5o8JRxGI0D8nGNTjJqZaT9ttU2YH8JWr9+Yp5tEUynUhn9+/tsrBoLGobhxXhL4GnQcSOZT5ci0hPZ5HgbZ1Wp60iG9an11nQa+e5oUhKNobmQVs1Zr/oIcYrW/XpIIAWUcojJZkQrlMhCrOW+nb0AMUesZcPba4MMyx0lLqk6ZCrRky3zhdvrzYFnKaPCyGxFvdC1hYTXM9Ej+w1CYODleEtPyN9C4IGd4Ad1i5RrG+epRwomB/+3oQuPZ8spbo17jeftP1Op9WA0i6CaRbdT8Fl2kCbJwJhQN8/Ox7JWCbaN6XjsGju/vpuSk+oKnLIfFbGYmN4bpYm8wGEIIrTeQJ1hGdy9ITknB1ZdgoyV7t9jiYI5XSHloP3/YDmEcyrW53GNl6pTUbAS21PuaMNyb6HH9UqqyzENgwi6Q1wJapS4KY2IlcdhinrHqMyB3zJLOXJaDpd/iOVVSXhgjSGVDv4xcg960w/Db7+uhLlrhdKyjBRSP2Blq8ZU40Y7BPUk+64P8=----ATTACHMENT:----Mjc0MzA0MDc4NTM2MDQ2NyA0MTA2NzE4MjQxMDQ1MzEgMzEwODg4NjUwODg1NzA0