0

php-ide-serenata 4.5.1 gives me this error:

Classlike is not defined or imported anywhere.

on this annotation

/**
 * @prepare foo
 */
public function bar()
{
}

How can I avoid this?

Thomas Landauer
  • 7,857
  • 10
  • 47
  • 99

1 Answers1

0

The reason is that Serenata only recognizes standard phpDocumentor annotation tags, see https://github.com/Gert-dev/php-ide-serenata/issues/349#issuecomment-340275376

As a workaround, you can add an empty class, just below your regular class, like that:

class prepare {}

You only need to do this once per namespace.

Thomas Landauer
  • 7,857
  • 10
  • 47
  • 99