Fix NFS detection on macOs
authorJérémy Derussé <jeremy@derusse.com>
Fri, 18 Dec 2020 11:40:59 +0000 (12:40 +0100)
committerJérémy Derussé <jeremy@derusse.com>
Fri, 18 Dec 2020 11:40:59 +0000 (12:40 +0100)
src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php

index 4ba713b..b9a8294 100644 (file)
@@ -207,8 +207,8 @@ EOF
 
         if (null === $mounts) {
             $mounts = [];
-            if ('/' === \DIRECTORY_SEPARATOR && $mounts = @file('/proc/mounts')) {
-                foreach ($mounts as $mount) {
+            if ('/' === \DIRECTORY_SEPARATOR && $files = @file('/proc/mounts')) {
+                foreach ($files as $mount) {
                     $mount = \array_slice(explode(' ', $mount), 1, -3);
                     if (!\in_array(array_pop($mount), ['vboxsf', 'nfs'])) {
                         continue;