Ignore comments at the end of line

If the variable value had no quotes a comment at the end of the
line was added to the variable.
 Spaces between text and comment mark will be removed too

Old:
FOO=Test # Comment -> $_ENV['FOO'] = "Test # Comment"

New:
FOO=Test # Comment -> $_ENV['FOO'] = "Test"
This commit is contained in:
2022-06-09 09:20:29 +09:00
parent f8e5cb64ad
commit 74b0d02a7c
4 changed files with 47 additions and 2 deletions

View File

@@ -7,7 +7,7 @@
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
>
<projectFiles>
<directory name="src" />
<directory name="." />
<ignoreFiles>
<directory name="vendor" />
<directory name="test" />