This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Loader::readFromFile( string $filePath )

Read the given file.


Parameters

$filePath

(string) (Required)


Return

(PhpOptionOption)


Source

File: vendor/vlucas/phpdotenv/src/Loader.php

    private static function readFromFile($filePath)
    {
        $content = @file_get_contents($filePath);

        return Option::fromValue($content, false);
    }