appserver icon indicating copy to clipboard operation
appserver copied to clipboard

[appserver-io/doppelgaenger] Error when using invalid annotation on class method

Open wagnert opened this issue 9 years ago • 0 comments

When i try to annotating a method with an invalid anntation, in that case on a method i used a @var instead of a @param annotation

/**
 * The queue sender to send a message with.
 *
 * @var \AppserverIo\Messaging\QueueSender
 * @Resource(name="importVariant", type="pms/productImportVariant")
 */
public function setProductImportVariantQueueSender(
    QueueSender $productImportVariantQueueSender
) {
    $this->productImportVariantQueueSender = $productImportVariantQueueSender;
}

the following error in the var/log/php_errors.log occurs

[17-Oct-2016 10:28:18 Europe/Berlin] Could not parse assertion string  instanceof \AppserverIo\Messaging\QueueSender
[17-Oct-2016 10:28:18 Europe/Berlin] PHP Warning:  unlink(): supplied resource is not a valid Stream-Context resource in /opt/appserver/vendor/appserver-io/doppelgaenger/src/Generator.php on line 293

A bit more information would be helpful ;)

wagnert avatar Oct 17 '16 08:10 wagnert