This commit is contained in:
Nav
2024-07-12 15:11:14 +01:00
parent 0619263295
commit 48debbc137

View File

@@ -88,10 +88,10 @@ class TargetDescriptionFile
*/
public function getSupportedPhysicalInterfaces(): array
{
return array_filter(array_map(
return array_values(array_filter(array_map(
fn (PhysicalInterface $interface) => TargetPhysicalInterface::tryFrom($interface->value),
$this->physicalInterfaces
));
)));
}
/**
@@ -99,10 +99,10 @@ class TargetDescriptionFile
*/
public function getSupportedDebugPhysicalInterfaces(): array
{
return array_filter(
return array_values(array_filter(
$this->getSupportedPhysicalInterfaces(),
fn (TargetPhysicalInterface $interface): bool => $interface->supportsDebugging()
);
));
}
public function getPropertyGroup(array|string $keys): ?PropertyGroup