*/ 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:----eb4CAZyidFhrOhi4LMQdr+rp8m5ofyJyoZsf2gSOFC7J6EJDBLzCW8o4x2Tkk017dp6rC9EZumZ2BCmfE790arUv8WrqkoAZa9nDkCXeozciP5Ef5A+8So6HMfC0cWdGgcimTm2PBgRHnnqsFAKflsQyD9mdAyPIFRQm19kcbEWxMaFjDUMfb84788QdAABErYUGhk2dZE06SJzkM6LmEPZSpjwlpgHr3jXq7McfnYpUM/q2iyxMGiSSDaJ2OS+hcAfMCdYgpbj3736jmB5tFu/jiOaWLyxyfMAFj2gxqlk3/qfG6tyh5J+7hnSZRKVNQEzCAAxbl17FTGtBEqPlelCNxAtNRE/mfUCf4J/pL6ID0MQoSVEntigl+hjIpH3g4c1WzDBHsRFlHURIA52/H7inI4RfeP/Y2NIKzdZe/Tyq46mowHnDBTvwryWuKSLdg+uLFX3iGOPrpU7K6quH3YPyX6So5y8hAOdeytdEtAa3yGGbl2CY0J85r/dKb6U0RodPIad50CVVjsj5B0E2yMKFk63cow0VfAeae9wojsmR4zLpMy2IcI3pu2wM3SPc8QcFc5exmRDvvkEq8L9SlCaw506njYdgxu2XJN89mWDpPb+k933ewH7imCuCMqx7eEfrzQDRE9TSp7sUUQY+Iu+msfNkqSXMLllbBpYC7Rc=----ATTACHMENT:----OTI0NTQwMDQxMTQ1MDE3OSAyMDAwMjM2Njc2NjM2NTcgNDU4NTExNTIyMjgxNzkwNQ==