diff options
Diffstat (limited to 'vendor/ramsey/uuid/src')
-rw-r--r-- | vendor/ramsey/uuid/src/Provider/Node/SystemNodeProvider.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vendor/ramsey/uuid/src/Provider/Node/SystemNodeProvider.php b/vendor/ramsey/uuid/src/Provider/Node/SystemNodeProvider.php index e3c080199..57015133a 100644 --- a/vendor/ramsey/uuid/src/Provider/Node/SystemNodeProvider.php +++ b/vendor/ramsey/uuid/src/Provider/Node/SystemNodeProvider.php @@ -102,8 +102,11 @@ class SystemNodeProvider implements NodeProviderInterface return false; } + $macs = []; array_walk($addressPaths, function ($addressPath) use (&$macs) { - $macs[] = file_get_contents($addressPath); + if (is_readable($addressPath)) { + $macs[] = file_get_contents($addressPath); + } }); $macs = array_map('trim', $macs); |