From bc37d11f1319daa3d6f51418c61ab9bd0ac912d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 3 Dec 2023 15:11:06 +0100 Subject: [PATCH] Fixed static analysis issue --- src/Services/EDA/KiCadHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Services/EDA/KiCadHelper.php b/src/Services/EDA/KiCadHelper.php index 7dd3c657..455ce7eb 100644 --- a/src/Services/EDA/KiCadHelper.php +++ b/src/Services/EDA/KiCadHelper.php @@ -89,9 +89,9 @@ class KiCadHelper continue; } - /** @var $category Category */ //Ensure that the category contains parts //For the last level, we need to use a recursive query, otherwise we can use a simple query + /** @var Category $category */ $parts_count = $category->getLevel() >= $this->category_depth ? $repo->getPartsCountRecursive($category) : $repo->getPartsCount($category); if ($parts_count < 1) {