Fix UIblock class extending interface collection

This commit is contained in:
Stephen Abello
2021-03-12 16:47:41 +01:00
parent 2a1b58e2c1
commit 6b6db02567

View File

@@ -75,7 +75,7 @@ class UIBlockExtension extends AbstractExtension
$aClassMap = array_merge($aClassMap, $aCurrentClasses);
foreach ($aClassMap as $sPHPClass) {
if (strpos($sPHPClass, 'UIBlockFactory')) {
if (strpos($sPHPClass, 'UIBlockFactory') !== false) {
try {
$oRefClass = new ReflectionClass($sPHPClass);
if ($oRefClass->implementsInterface($sInterface) && $oRefClass->isInstantiable()) {