File tree Expand file tree Collapse file tree
Classes/NodeRendering/Extensibility Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,18 +79,21 @@ public function addRenderedDocumentToContentRelease(ContentReleaseIdentifier $co
7979 }
8080 }
8181
82- static private function instantiateExtensions (array $ configuration , string $ extensionInterfaceName ): array
82+ private static function instantiateExtensions (array $ configuration , string $ extensionInterfaceName ): array
8383 {
84- $ instanciatedExtensions = [];
84+ $ instantiatedExtensions = [];
8585 foreach ($ configuration as $ extensionConfig ) {
86+ if (!is_array ($ extensionConfig )) {
87+ continue ;
88+ }
8689 $ className = $ extensionConfig ['className ' ];
8790 $ instance = new $ className ();
8891 if (!($ instance instanceof $ extensionInterfaceName )) {
8992 throw new \RuntimeException ('Extension ' . get_class ($ instance ) . ' does not implement ' . $ extensionInterfaceName );
9093 }
91- $ instanciatedExtensions [] = $ instance ;
94+ $ instantiatedExtensions [] = $ instance ;
9295
9396 }
94- return $ instanciatedExtensions ;
97+ return $ instantiatedExtensions ;
9598 }
96- }
99+ }
You can’t perform that action at this time.
0 commit comments