Skip to content
This repository has been archived by the owner on Jun 4, 2019. It is now read-only.

Bad annotation: deprecated #115

Open
lovek323 opened this issue Mar 31, 2015 · 5 comments
Open

Bad annotation: deprecated #115

lovek323 opened this issue Mar 31, 2015 · 5 comments

Comments

@lovek323
Copy link

I'm trying to run scheck on a PHP codebase but I'm getting Fatal error: exception Failure("Bad annotation: deprecated"). I have tried (very briefly) to debug this myself, but have failed.

I'm not sure if this is referring to an annotation in the PHP code (the code definitely makes use of @deprecated) or whether this is some scheck/codegraph annotation.

Any thoughts on what might be going wrong?

@phooji
Copy link
Contributor

phooji commented Apr 8, 2015

Interesting. Looks like this happens when scheck looks for the @Scheck annotation to see if a particular warning should be silenced, and finds something else instead.

I'm not able to repro this locally. @lovek323 any chance I could convince you to attach a kind-of-minimal repro that causes this to happen for you?

@lovek323
Copy link
Author

@phooji: I have been trying to repro this on a simple case, but haven't yet been able to. I'll let you know if I find a minimal repro.

@ghost
Copy link

ghost commented Aug 4, 2015

Thank you for reporting this issue and appreciate your patience. We've notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed.

@zhaakhi
Copy link

zhaakhi commented Aug 21, 2015

Hello,
Here is a file that reproduces this issue:

<?php
// @deprecated: foo
class Foo {}

@dennisusdev
Copy link

This is still an issue. I found the same failure running against my PHP repo:

Fatal error: exception Failure("Bad annotation: todo")

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

No branches or pull requests

3 participants