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:----ukYL+a1l0UpmftnqsyIq6DU7WeyFN9RBp/Nd8cSuq2r93FgbAHcACvkwSUhTjTrpQWuP2gReFzmiv3yU1gOlOrm4BVfIK2mwaLX8f+IhPHLDEz9Rk/XGh806qf65y9pc5X8YCDkKXiwmYmfztJDIsg+TocABwNmBvRWupbkEBmvqYShtbWYRnyuFff5fqPOsSxEGWlqAGdYE+gxzSv5VxXzj4gFuJaAexgF1rHocD1Dr3AeE2xMXUUYfUps9wBkJ9UJNxquQsGP8NCejPTWNTq9KeJOj/i2JwqxQzZgcLEULzorqo8UJPos+kFOq3TlDoikENTnkoLys/ypefGw7ITIymS2cBdpdsj+RlNNpVeiQPgb805Kz2OQ7RGCwnNSK0igaknMLNjr9u3vkqU1wbZwktHACqj67ZRGhhhTdAsFDsXB65RzbfPqWERYRWXH922vLDTiSCjZUTtKwJaPXcEAKlLQChk0xdRecdWgdwvBP+13U3By74eNrLWYEiwG5QgHveLge/AKiF/mui2/GQAX0K3JVHS0Nnj2WTvga0iYOngZicW5xyq/u67XE3yEttAIGSVodTqYH0CUq6dA50R5wsEUdE4W2N4gJMbEmQ8y+XIQohWbHGHqI5H+Q0SEFyNpiskY16/HXcwsGlWBVHnRnUOZbviTbMq5w5NXNbtM=----ATTACHMENT:----MTc2MjE5NjgwNDQ1Nzc5IDc0OTgzMDQ3MTc0MjQzNCAyNTM2NjY0MTY4NjA0NDE3