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.

Dotenv::getFilePaths( string[] $paths, string $file )

Returns the full paths to the files.


Parameters

$paths

(string[]) (Required)

$file

(string) (Required)


Return

(string[])


Source

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

    private static function getFilePaths(array $paths, $file)
    {
        return array_map(function ($path) use ($file) {
            return rtrim($path, DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR.$file;
        }, $paths);
    }