diff --git a/module/VuFind/src/VuFind/Content/AbstractSyndeticsFactory.php b/module/VuFind/src/VuFind/Content/AbstractSyndeticsFactory.php index a8abaae767602bb9c233449548e4857f0d3a68bb..3abb04f083cf4629994f8d4a53accf9540179a9a 100644 --- a/module/VuFind/src/VuFind/Content/AbstractSyndeticsFactory.php +++ b/module/VuFind/src/VuFind/Content/AbstractSyndeticsFactory.php @@ -58,6 +58,9 @@ class AbstractSyndeticsFactory implements FactoryInterface public function __invoke(ContainerInterface $container, $requestedName, array $options = null ) { + if ($options !== null) { + throw new \Exception('Unexpected options sent to factory!'); + } $config = $container->get('VuFind\Config\PluginManager')->get('config'); // Special case: if the class name ends in Plus, we need to strip off