From a76ce6f4fb5bd8c9137308296d600e983cf6f804 Mon Sep 17 00:00:00 2001 From: Ingolf Steinardt Date: Fri, 19 Jul 2024 22:05:23 +0200 Subject: [PATCH] Fix PHPCQ --- composer.json | 2 +- .../DcGeneral/Table/FilterSetting/DefaultOptionListener.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index c07af13b8..3ba031772 100644 --- a/composer.json +++ b/composer.json @@ -32,7 +32,7 @@ "require": { "php": "^8.1", "ext-dom": "*", - "contao-community-alliance/dc-general": "^2.3.15", + "contao-community-alliance/dc-general": "^2.3.16", "contao-community-alliance/events-contao-bindings": "^4.13.1", "contao-community-alliance/meta-palettes": "^2.0.10", "contao-community-alliance/translator": "^2.4.2", diff --git a/src/CoreBundle/EventListener/DcGeneral/Table/FilterSetting/DefaultOptionListener.php b/src/CoreBundle/EventListener/DcGeneral/Table/FilterSetting/DefaultOptionListener.php index b3ee4690a..58f2f19b0 100644 --- a/src/CoreBundle/EventListener/DcGeneral/Table/FilterSetting/DefaultOptionListener.php +++ b/src/CoreBundle/EventListener/DcGeneral/Table/FilterSetting/DefaultOptionListener.php @@ -71,6 +71,7 @@ public function handle(GetPropertyOptionsEvent $event) if (!($attributeId = $model->getProperty('attr_id'))) { return; } + assert(\is_numeric($attributeId)); $metaModel = $this->filterFactory->createCollection($model->getProperty('fid'))->getMetaModel();