This commit is contained in:
Nav
2024-02-22 20:41:32 +00:00
parent 0c8ba1b7b7
commit ccf631fcc7
3 changed files with 2 additions and 7 deletions

View File

@@ -20,7 +20,7 @@ class DiscoveryService
$directory = new \DirectoryIterator($directoryPath);
foreach ($directory as $entry) {
if ($entry->isFile() && $entry->getExtension() == 'xml') {
if ($entry->isFile() && $entry->getExtension() === 'xml') {
$output[] = clone $entry;
} elseif ($entry->isDir() && !$entry->isDot()) {