should use implicit toString()

This commit is contained in:
Andy Miller
2016-01-09 15:41:03 -07:00
parent 7804880826
commit 45c8d83666

View File

@@ -727,7 +727,7 @@ class Admin
/** @var \DirectoryIterator $directory */
foreach (new \DirectoryIterator($path) as $file) {
if ($file->isDir() || $file->isDot() || !preg_match('/^[^.].*.yaml$/', $file)) {
if ($file->isDir() || $file->isDot() || !preg_match('/^[^.].*.yaml$/', $file->getFilename())) {
continue;
}
$configurations[] = basename($file->getBasename(), '.yaml');