java2dev Posted September 29, 2016 Share Posted September 29, 2016 Using the validator I found many issues "Variable $whathever is undefined" when I add "global $whatever" the new error generated is "Use of globals is forbidden" so I don't know really how to resolve this kind of issue. Link to comment Share on other sites More sharing options...
Apium Posted September 29, 2016 Share Posted September 29, 2016 (edited) Are you using a variable within a closure? I had a similar problem with one of my modules while using $this within a closure. The Validator doesn't seem to understand some of the scoping rules. Does your code work, but only show this error? If so, I'd leave it be. Edited September 29, 2016 by Apium (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now