diff --git a/src/TypesGenerator.php b/src/TypesGenerator.php index 90393096..5950b51c 100644 --- a/src/TypesGenerator.php +++ b/src/TypesGenerator.php @@ -617,7 +617,7 @@ private function generateField(array $config, array $class, \EasyRdf_Resource $t $this->logger->error(sprintf('The property "%s" (type "%s") has an unknown type. Add its type to the config file.', $propertyName, $type->localName())); } else { if ($numberOfRanges > 1) { - $this->logger->warning(sprintf('The property "%s" (type "%s") has several types. Using the first one.', $propertyName, $type->localName())); + $this->logger->warning(sprintf('The property "%s" (type "%s") has several types. Using the first one ("%s") or possible options("%s").', $propertyName, $type->localName(), reset($ranges), implode('", "', $ranges))); } $cardinality = $propertyConfig['cardinality'] ?? false;