From bfd767da7d66652f0addc4fc16f90765c659ebaa Mon Sep 17 00:00:00 2001 From: Nav Date: Sat, 30 Mar 2024 19:40:01 +0000 Subject: [PATCH] Tidying --- .../Targets/TargetDescriptionFiles/TargetDescriptionFile.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/scripts/Targets/TargetDescriptionFiles/TargetDescriptionFile.php b/build/scripts/Targets/TargetDescriptionFiles/TargetDescriptionFile.php index 438b536c..4665a64a 100644 --- a/build/scripts/Targets/TargetDescriptionFiles/TargetDescriptionFile.php +++ b/build/scripts/Targets/TargetDescriptionFiles/TargetDescriptionFile.php @@ -240,10 +240,10 @@ class TargetDescriptionFile public function getTargetRegister( string $peripheralKey, array|string $groupKeys, - array|string $registerKeys + array|string $registerKey ): ?TargetRegister { return ($peripheral = $this->getPeripheral($peripheralKey)) instanceof Peripheral - ? $this->targetPeripheralFromPeripheral($peripheral)->getRegister($groupKeys, $registerKeys) + ? $this->targetPeripheralFromPeripheral($peripheral)->getRegister($groupKeys, $registerKey) : null; }