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

@@ -34,7 +34,7 @@ class Avr8TargetDescriptionFile extends TargetDescriptionFile
public function getAdditionalDeviceAttributes(): array
{
return [
'avr-family' => $this->getAvrFamily()->value,
'avr-family' => $this->getAvrFamily()->value ?? '',
];
}

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()) {

View File

@@ -328,11 +328,6 @@ class FromXmlService
if ($childNode->nodeName === 'register-group-instance') {
$output->registerGroupInstances[] = $this->registerGroupInstanceFromElement($childNode);
continue;
}
if ($childNode->nodeName === 'signal') {
$output->signals[] = $this->signalFromElement($childNode);
}
}