We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82a4cb8 commit cd45441Copy full SHA for cd45441
src/Models/Field.php
@@ -1114,6 +1114,10 @@ public function isMultipleAnswers()
1114
*/
1115
protected function getLabelsFromProperties(array $properties)
1116
{
1117
+ if (!Helpers::isKeyExists($properties, 'labels')) {
1118
+ throw new Exception('The resource-file is missing the labels entry for the ' . $this->name . ' field.');
1119
+ }
1120
+
1121
if (is_array($properties['labels'])) {
1122
//At this point we know this the label
1123
return $this->getLabelsFromArray($properties['labels']);
0 commit comments