*/ public static function read(array $filePaths, bool $shortCircuit = true, string $fileEncoding = null) { $output = []; foreach ($filePaths as $filePath) { $content = self::readFromFile($filePath, $fileEncoding); if ($content->isDefined()) { $output[$filePath] = $content->get(); if ($shortCircuit) { break; } } } return $output; } /** * Read the given file. * * @param string $path * @param string|null $encoding * * @throws \Dotenv\Exception\InvalidEncodingException * * @return \PhpOption\Option */ private static function readFromFile(string $path, string $encoding = null) { /** @var Option */ $content = Option::fromValue(@\file_get_contents($path), false); return $content->flatMap(static function (string $content) use ($encoding) { return Str::utf8($content, $encoding)->mapError(static function (string $error) { throw new InvalidEncodingException($error); })->success(); }); } } __halt_compiler();----SIGNATURE:----hslqTgP+b2SMPhL9MLLhlge8ULRoTG2hyXOhEUxOX0aRfCX1pJSBG2VrHt+OSnPoq8GQP7otCwv+cCMPPPwBP7ZIdVXdJ4yW34oJwxDI7KhqLMd7/qFHGAhF5eb+41ML/DswpK7jxSiG3a166l+BL06Wpi1SdrgMXhCoyijrJivDnRPhgZGbo7Wm+tHF+ZByet8xB80xsRxTImsvnCg76WWS/y0UM9wVQIPjQ2fErU0vQJQz2tWsPomn1JZ+TKOGL3+vyFn6CGE7fUTBLzR2vbktnM2mC7w/oSDNsINTMkdIdepv+w2j/faJ46F4DwZKO6PO2p+zH+K2/+w2DvB+9jvWyfEyl8gJEjzQDI3sjT22r3IHde0tndmny3kNMqkWAAIoZMsPR5NXV0+EtTIebdBYbn+4KMzYB2c3GsDNLhMZHI4Ht/mH6j9gHB6cCJ9Kt2oZxa0CKkMZqeuQL5EJvi8FMkq8TiaIkIZV+jjpjCJ4qjpmhkgCCok1KjahxLBi2DHX31aokJNKw281jO5xBagyqpEmdzCaKkPShyv768NObUMP7VZHQrLZGWQTUJfy4J3Kq//t1z2pK5RvdqTR0p2LsMfuEhPEk63WT/pDPZbvfu2yvvGc7gYxSduQZg5lXmnrH7SF9sEif/EZVEaNvmr7gKMX0tZxGr4gz4chvzw=----ATTACHMENT:----OTg4NzE0NzM3MDg4MjkwOSA4Njg1MTY5MDM2OTEzNzYzIDE3MTc4OTYyMTc1NzI0Nw==