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

Question around mixins #138

Open
LiamKearn opened this issue Nov 19, 2021 · 1 comment
Open

Question around mixins #138

LiamKearn opened this issue Nov 19, 2021 · 1 comment
Labels

Comments

@LiamKearn
Copy link

LiamKearn commented Nov 19, 2021

Hiya,

Sorry for the issue a tad on the question side.

I've been using silverstripe-ideannotator and really enjoying it.
Unfortunately I've encountered an issue when playing around with psalm.

Whilst parsing the docblocks specifically ( psalm is unhappy with annotations like the following @mixin \SilverStripe\Versioned\Versioned("Stage","Live")

Here is the question part 😄 . I've been doing some digging around and cannot find anything indicating this sort of syntax. Is this a valid syntax, a bug or is it just a sort of code comment / nicety?

Would PR to either fix this or make it configurable be accepted?

@robbieaverill
Copy link
Contributor

Hey @LiamKearn, the PHPDoc spec has always been a little ambiguous (has gone in and out of PHP-FIG maintenance). I would recommend trying firstly to remove the ("Stage","Live") part of these annotations, but if that also doesn't help I'd be happy for you to remove them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants