adelf / idea-php-dotenv-plugin

environment parameters completion, based on .env file keys
MIT License
166 stars 13 forks source link

Inspection that warns the user when using spaces without surrounding quotes #54

Closed nicolus closed 4 years ago

nicolus commented 4 years ago

When using vlucas/phpdotenv, you can't use a value with spaces in it without surrounding the value with double quotes (I don't know about other .env implementations). It throws an error that says

Dotenv values containing spaces must be surrounded by quotes

It would be really useful if this plugin could add an inspection (like the "duplicate keys" one) that warns you if you're trying to do that.

adelf commented 4 years ago

Inspection + quick fix added in 2020.2 version. Thanks.