Skip to content

Commit 2ec4373

Browse files
committed
ContainerBuilder: better message
1 parent b4c2163 commit 2ec4373

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DI/ContainerBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ private function resolveImplement(ServiceDefinition $def, $name)
360360
if (!$returnType) {
361361
throw new ServiceCreationException("Method $interface::$methodName() used in service '$name' has no @return annotation.");
362362
} elseif (!class_exists($returnType)) {
363-
throw new ServiceCreationException("Please check a @return annotation of the $interface::$methodName() method used in service '$name'. Class '$returnType' cannot be found.");
363+
throw new ServiceCreationException("Check a @return annotation of the $interface::$methodName() method used in service '$name', class '$returnType' cannot be found.");
364364
}
365365
$def->setClass($returnType);
366366
}

0 commit comments

Comments
 (0)