8000 Remove warning accessing /proc/mounts on non Linux systems · symfony/symfony@d3f80bd · GitHub
[go: up one dir, main page]

Skip to content

Commit d3f80bd

Browse files
committed
Remove warning accessing /proc/mounts on non Linux systems
1 parent 837f7a8 commit d3f80bd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int
204204

205205
private function isNfs(string $dir): bool
206206
{
207+
if ('Linux' !== \PHP_OS) {
208+
return false;
209+
}
210+
207211
static $mounts = null;
208212

209213
if (null === $mounts) {

0 commit comments

Comments
 (0)
0