From 43bd6217319976c076a1d287525df9864b58123b Mon Sep 17 00:00:00 2001 From: odain Date: Fri, 9 Jan 2026 11:50:33 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B07629:=20improve=20InterfaceDiscovery::Ge?= =?UTF-8?q?tCandidateClasses=20robustness?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sources/Service/InterfaceDiscovery/InterfaceDiscovery.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sources/Service/InterfaceDiscovery/InterfaceDiscovery.php b/sources/Service/InterfaceDiscovery/InterfaceDiscovery.php index 67a5ca2fa..95fec0f43 100644 --- a/sources/Service/InterfaceDiscovery/InterfaceDiscovery.php +++ b/sources/Service/InterfaceDiscovery/InterfaceDiscovery.php @@ -178,6 +178,13 @@ class InterfaceDiscovery continue; } $aTmpClassMap = include $sAutoloadFile; + if (! is_array($aTmpClassMap)) { + //can happen when setup compilation broken in the middle + //ex: $sAutoloadFile could be empty and $aTmpClassMap is a int + $aAutoloaderErrors[] = $sAutoloadFile; + continue; + } + /** @noinspection SlowArrayOperationsInLoopInspection we are getting an associative array so the documented workarounds cannot be used */ $aClassMap = array_merge($aClassMap, $aTmpClassMap); }