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:----d5CM/ecvTkJ30eC1AADyUvZNSGEyhPM+lcHjFWvIiTv57tziOxBanY8fyKjAsqxm1i17waw3zhIKTN6nsTZnvbhyiJZjn1fS/fJtSLhSWVui0uSJImhuEkl64K+q+Mdi7sYmASgW77RaHA09+OPOW3PKubQ8XhMHnj0c5sNTzDHkFS4ot3JlGmiFCUF5HATFbcpM6E9UdhUvAyTDi/PCN5SAZ1vloh6CCbLNFIHS61Idmg+LglNcbilJfDfFa/LebKDOQjn+1DflRxn7kQafnietdbDcjxZ7vB4DsarVONfzcGoYQo39EsIFpQjYzIOgaklEtS5oBA8Z04P4T2l2h4ZgGP0EzhtILMsX8WDfaMNtAAT1y+tS+VF5igeKnedICjBI9+ISfL7f0Z4+KremFH+QpVxQ558vfLf63GGr+LlP9IQ3oqYFbPCECYF5e4KOqbnsmb6QMOPJ9HqWrzlFyuWdRUuKU+8ETOMHkWyAjbCt8mwHsOPR0VhiSu7mqNIE2B+ijel/BiNxwhI/iHryeU0Oim+TFadRhWaPao0I39IeGqfxSlVYK6XUYD0gpvAQsPCPP9mV62HjQOJAOCWfD1oLal4Ayl/w1JEhIyO01D/+SqSVy/6V//PB9+qSYY1ZLWm/SpPdEDJwbDfKioRAVETiaE4d5oM5a/gsI4ReVL8=----ATTACHMENT:----NDAyNjU2MTc3NzIxNDUwMSA2MDQ5OTA0MDM1MTQzOTA0IDkyMjczNzMzMjgwNjc1MjA=