Skip to content

Commit c7983ae

Browse files
More helpful message when using 1st type in range
Warning will now advise of the selected type, and the other alternatives.
1 parent 9dc02be commit c7983ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TypesGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ private function generateField(array $config, array $class, \EasyRdf_Resource $t
617617
$this->logger->error(sprintf('The property "%s" (type "%s") has an unknown type. Add its type to the config file.', $propertyName, $type->localName()));
618618
} else {
619619
if ($numberOfRanges > 1) {
620-
$this->logger->warning(sprintf('The property "%s" (type "%s") has several types. Using the first one.', $propertyName, $type->localName()));
620+
$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)));
621621
}
622622

623623
$cardinality = $propertyConfig['cardinality'] ?? false;

0 commit comments

Comments
 (0)