commit 2f22499e6b051b5a75f33ce729a2067c43d86dd0
parent c629a8289b1697e6d73c615ea6a7d3af0e874939
Author: Timo A. Hummel <felicitus@felicitus.org>
Date: Fri, 10 Feb 2017 18:43:52 +0100
Use explicit compare to avoid an issue where a matcher would not work if matching for field number 0
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PartKeepr/ImportBundle/Configuration/ManyToOneConfiguration.php b/src/PartKeepr/ImportBundle/Configuration/ManyToOneConfiguration.php
@@ -76,7 +76,7 @@ class ManyToOneConfiguration extends Configuration
foreach ($importConfiguration->matchers as $matcher) {
if (!property_exists($matcher, "matchField") || !property_exists($matcher,
- "importField") || $matcher->importField == ""
+ "importField") || $matcher->importField === ""
) {
throw new \Exception("matcher configuration error");
}