filePath = $filePath; } /** * Load config * * @return ConfigValues */ public function load(): ConfigValues { // If file is not readable for any reason (permissions, etc), throw an exception 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; // Loading the file will either overwrite the $config variable or the file itself will return an array ob_start(); $configFromReturn = include $this->filePath; ob_end_clean(); /** @phpstan-ignore-next-line Ignore because we are doing some things that PHPStan doesn't understand */ if (!is_array($config)) { $config = $configFromReturn; } // If the config file still isn't an array, throw an exception if (!is_array($config)) { throw new ConfigLoaderException("Missing or invalid \$config array in file: " . $this->filePath); } return new ConfigValues($config); } catch (Throwable $e) { throw new ConfigLoaderException( "Error loading configuration from file: " . $this->filePath, $e->getCode(), $e ); } } } __halt_compiler();----SIGNATURE:----IndaNvAHMiejCqWnMimSB4fe1fe941asD/Ysu2hEVkwdUReld3/JSXeFsZsXgSyVbEatcAiAJ+y2qHvvRvBxW90hKHwhWShyZlVpiKhkQAObu3wGBZRadWSmXnvlRexFfGU+LoY2z+SyZThkXX0BNjKEcJeaEJWcVFHi3fb0Uh844d28/YT6TbtaZHZ4jFFzFUS3B4bo96wkHwxJvWZFaFMiAhbnGJ8E5jEt221WhQduRmzsX13z319LvVJUuli4yFM59JIZiCAG5tVwaLsaTF4BMuzP8QFVEyq70OwKogWC89ksb2fO6MXNf66z9H/HNSKNY2BB6afmVvUieKKp+wtznCor8Qyts47pWG2OQi1lccMXoT2Lug8mXmJqTG2vV3+3wBVfXNQ4WAjAb+g2jqYB/0o0BZsQ3VWv7MyF+bodWjE7tIBh2VvCG0Ckuea+EIM4N4Ea2qMZRCt+QdvpMdqrCq3Urn2qxnYD3dpJ1rEHWVwvAY8miAuekd6TeMSjejMKUpxA0MeHEcDnXc41S/zHoeCXA/4qda8iYt8i0o81sMAk6g8JGPAdb62xe+vurJ23COt24uppAKqQHfAZHyV4DZv3ioKbBoN22CgO0aXOVFWrXQ8KBDke+pPSuMntKsG0Acq0uKaW85mEsA7zSq7/GLLUEPYKOX+AgqRQFoQ=----ATTACHMENT:----ODE4NDEzMTExNzAwOTYxOSA1NTg4MzQ4OTA3Mjk2NDQ4IDQ5NzcwNjI4NDA3NTUwNDg=