From 1ad4b2a91e8308d199ca7a9da7a4544d3ca5c46e Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Mon, 9 Jul 2018 11:51:53 -0400
Subject: [PATCH] Validate options.

---
 module/VuFind/src/VuFind/Content/AbstractSyndeticsFactory.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/module/VuFind/src/VuFind/Content/AbstractSyndeticsFactory.php b/module/VuFind/src/VuFind/Content/AbstractSyndeticsFactory.php
index a8abaae7676..3abb04f083c 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
-- 
GitLab