We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 149255e + 9a800ae commit 4daa856Copy full SHA for 4daa856
src/main/java/fr/adrienbrault/idea/symfony2plugin/dic/container/util/DotEnvUtil.java
@@ -115,20 +115,20 @@ private static void visitEnvironment(@NotNull Project project, @NotNull Consumer
115
116
for (VirtualFile virtualFile : files) {
117
PsiFile file = PsiManager.getInstance(project).findFile(virtualFile);
118
- if(file == null) {
+ if (file == null) {
119
continue;
120
}
121
122
Properties variables = new Properties();
123
try {
124
variables.load(virtualFile.getInputStream());
125
- } catch (IOException e) {
+ } catch (Throwable e) {
126
127
128
129
for (Map.Entry<Object, Object> variable : variables.entrySet()) {
130
Object key = variable.getKey();
131
- if(key instanceof String) {
+ if (key instanceof String) {
132
consumer.accept(Pair.create((String) key, file));
133
134
0 commit comments