phpdotenv icon indicating copy to clipboard operation
phpdotenv copied to clipboard

How should I use `notEmpty`?

Open hirasso opened this issue 1 year ago • 0 comments

Hi there! I'd love to have a way to do this:

$dotenv->notEmpty(['MY_FIRST_VAR', 'MY_SECOND_VAR']);

...with the same behavior as $dotenv->required.

The function is already there, but there doesn't seem to be a public API:

https://github.com/vlucas/phpdotenv/blob/a59a13791077fe3d44f90e7133eb68e7d22eaff2/src/Validator.php#L68-L76

I'd submit a PR if you accept one :)

hirasso avatar Sep 19 '24 11:09 hirasso