mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-13 11:41:31 +00:00
updated streamline-setup v2
This commit is contained in:
@@ -40,7 +40,7 @@ final class Reader
|
||||
*
|
||||
* @return array<string,string>
|
||||
*/
|
||||
public static function read(array $filePaths, bool $shortCircuit = true, string $fileEncoding = null)
|
||||
public static function read(array $filePaths, bool $shortCircuit = true, ?string $fileEncoding = null)
|
||||
{
|
||||
$output = [];
|
||||
|
||||
@@ -67,7 +67,7 @@ final class Reader
|
||||
*
|
||||
* @return \PhpOption\Option<string>
|
||||
*/
|
||||
private static function readFromFile(string $path, string $encoding = null)
|
||||
private static function readFromFile(string $path, ?string $encoding = null)
|
||||
{
|
||||
/** @var Option<string> */
|
||||
$content = Option::fromValue(@\file_get_contents($path), false);
|
||||
|
||||
@@ -39,7 +39,7 @@ final class FileStore implements StoreInterface
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct(array $filePaths, bool $shortCircuit, string $fileEncoding = null)
|
||||
public function __construct(array $filePaths, bool $shortCircuit, ?string $fileEncoding = null)
|
||||
{
|
||||
$this->filePaths = $filePaths;
|
||||
$this->shortCircuit = $shortCircuit;
|
||||
|
||||
@@ -51,7 +51,7 @@ final class StoreBuilder
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
private function __construct(array $paths = [], array $names = [], bool $shortCircuit = false, string $fileEncoding = null)
|
||||
private function __construct(array $paths = [], array $names = [], bool $shortCircuit = false, ?string $fileEncoding = null)
|
||||
{
|
||||
$this->paths = $paths;
|
||||
$this->names = $names;
|
||||
@@ -120,7 +120,7 @@ final class StoreBuilder
|
||||
*
|
||||
* @return \Dotenv\Store\StoreBuilder
|
||||
*/
|
||||
public function fileEncoding(string $fileEncoding = null)
|
||||
public function fileEncoding(?string $fileEncoding = null)
|
||||
{
|
||||
return new self($this->paths, $this->names, $this->shortCircuit, $fileEncoding);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user