From c7983aea117293b8d56882be77245fe182e2d933 Mon Sep 17 00:00:00 2001 From: Toby Griffiths Date: Mon, 30 Oct 2017 16:01:30 +0000 Subject: [PATCH] More helpful message when using 1st type in range Warning will now advise of the selected type, and the other alternatives. --- src/TypesGenerator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;