Commit 495a53d
committed
bug #53138 [FrameworkBundle] Prevent silenced warning by checking if
This PR was merged into the 7.1 branch.
Discussion
----------
[FrameworkBundle] Prevent silenced warning by checking if `/proc/mount` exists
| Q | A
| ------------- | ---
| Branch? | 7.1
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | -
| License | MIT
When running `bin/console cache:clear -vvv` on Mac OS, I get the following warning:
```
12:40:51 DEBUG [php] Warning: file(/proc/mounts): Failed to open stream: No such file or directory
[
"exception" => Symfony\Component\ErrorHandler\Exception\SilencedErrorContext {
+count: 1
-severity: E_WARNING
trace: {
./vendor/symfony/framework-bundle/Command/CacheClearCommand.php:203 { …}
./vendor/symfony/framework-bundle/Command/CacheClearCommand.php:156 { …}
}
}
]
```
This warning can be avoided by checking whether the file exists. Maybe the `@` can be removed also.
I'm not sure about the branch to target as this is not really a bug.
Commits
-------
8f9a51ec99 [FrameworkBundle] Prevent silenced warning by checking if file exists/proc/mount exists (GromNaN)1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
| 203 | + | |
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| |||
0 commit comments