Validator::allowedValues( string[] $choices )
Assert that each variable is amongst the given choices.
Parameters
- $choices
-
(Required)
Return
(DotenvValidator)
Source
File: vendor/vlucas/phpdotenv/src/Validator.php
public function allowedValues(array $choices)
{
return $this->assertCallback(
function ($value) use ($choices) {
return in_array($value, $choices, true);
},
sprintf('is not one of [%s]', implode(', ', $choices))
);
}