We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af225f4 commit b2c50d3Copy full SHA for b2c50d3
src/Data/ParameterList.php
@@ -42,6 +42,12 @@ public function toArray(): array
42
$data = [];
43
44
foreach ($this->data as $parameter) {
45
+ if (array_key_exists($parameter->getName(), $data)) {
46
+ /**
47
+ * @see https://github.com/conjoon/php-lib-conjoon/issues/25
48
+ */
49
+ throw new RuntimeException("\"" . $parameter->getName() . "\" already in list");
50
+ }
51
$data[$parameter->getName()] = $parameter->getValue();
52
}
53
0 commit comments