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

interfaces may not include member variables not flagged as error #1666

Closed
SignpostMarv opened this issue May 22, 2019 · 1 comment
Closed

Comments

@SignpostMarv
Copy link
Contributor

<?php
interface foo {
  public static $foo = ['bar'];
}

Fatal error: Interfaces may not include member variables in /in/ThdMS on line 3

@muglug muglug closed this as completed in c64a654 May 23, 2019
@muglug
Copy link
Collaborator

muglug commented May 23, 2019

Thanks - as a general rule, things that can be caught by php -l aren't things that I care to detect (though Psalm will detect some of them anyway thanks to PHP Parser).

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

No branches or pull requests

2 participants