Skip to content

Commit 7a7ded2

Browse files
committed
bug symfony#39555 [FrameworkBundle] Fix NFS detection on macOs (jderusse)
This PR was merged into the 5.2 branch. Discussion ---------- [FrameworkBundle] Fix NFS detection on macOs | Q | A | ------------- | --- | Branch? | 5.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix symfony#39552 | License | MIT | Doc PR | - Commits ------- 79718fb Fix NFS detection on macOs
2 parents 5c03d2d + 79718fb commit 7a7ded2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ private function isNfs(string $dir): bool
207207

208208
if (null === $mounts) {
209209
$mounts = [];
210-
if ('/' === \DIRECTORY_SEPARATOR && $mounts = @file('/proc/mounts')) {
211-
foreach ($mounts as $mount) {
210+
if ('/' === \DIRECTORY_SEPARATOR && $files = @file('/proc/mounts')) {
211+
foreach ($files as $mount) {
212212
$mount = \array_slice(explode(' ', $mount), 1, -3);
213213
if (!\in_array(array_pop($mount), ['vboxsf', 'nfs'])) {
214214
continue;

0 commit comments

Comments
 (0)