You may do the following: $dotenv->required('FOO')->isBoolean();. If the environment variable is not a boolean, you'd get an Exception:
確定! 回上一頁