Kdyby / Console

Symfony Console integration for Kdyby components
https://packagist.org/packages/kdyby/console
Other
52 stars 54 forks source link

[Semantical Error] The annotation "@phpcsSuppress" in class KdybyModule\CliPresenter was never imported. #75

Closed BigOHenry closed 6 years ago

BigOHenry commented 6 years ago

[Semantical Error] The annotation "@phpcsSuppress" in class KdybyModule\CliPresenter was never imported. Did you maybe forget to add a "use" statement for this annotation?

When i delete the anotation from CliPresenter it works fine

/**
 * @phpcsSuppress KdybyCodingStandard.Files.TypeNameMatchesFileName
 */
class CliPresenter extends \Nette\Application\UI\Presenter
BigOHenry commented 6 years ago

Any motivation to fix it pls?

enumag commented 6 years ago

No fix needed. Either setup your Kdyby/Annotations correctly to ignore this annotation or even better don't use CliPresenter. I think we should mark it as deprecated since there is no reason to use it anymore.

BigOHenry commented 6 years ago

How can i set it pls? I am just using Kdyby/RabbitMq with Kdyby/Console...

enumag commented 6 years ago

Using this you should avoid CliPresenter. https://github.com/Kdyby/Console/blob/master/docs/en/index.md#running-the-console

If you still see the error then I need more information about your setup to help you.

BigOHenry commented 6 years ago

I have everything like at that URL... ah, the problem is in Ublaboo/ApiRouter: 2018-04-12 17_40_12-debian-test - vmware workstation 14 player non-commercial use only

ApiRouter try to scan CliPresenter for annotation routes

BigOHenry commented 6 years ago

Any idea how to fix it pls?

enumag commented 6 years ago

Add the annotation to ignore as I said above. https://github.com/Kdyby/Annotations/blob/master/docs/en/index.md#configuration