composer update
This commit is contained in:
+12
@@ -135,6 +135,18 @@ class Dotenv
|
||||
return new Validator((array) $variables, $this->loader);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a new validator object that won't check if the specified variables exist.
|
||||
*
|
||||
* @param string|string[] $variables
|
||||
*
|
||||
* @return \Dotenv\Validator
|
||||
*/
|
||||
public function ifPresent($variables)
|
||||
{
|
||||
return new Validator((array) $variables, $this->loader, false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the list of environment variables declared inside the 'env' file.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user