Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wagnert opened this issue Oct 17, 2016 · 0 comments
Assignees

Comments

@wagnert
Copy link
Member

wagnert commented Oct 17, 2016

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 ;)

@wick-ed wick-ed added the bug label Mar 9, 2017
@wick-ed wick-ed self-assigned this Mar 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants