Hint for code fragments?

I'm moving some legacy code to external files to declutter my controllers. As part of this, I've cut-pasted old versions of functions into a legacy snippet file, which is then being reincluded.

 include_once './legacy_<module>.php'

Is it possible to provide a hint at the file level that this module DOES exist in an object context, so I'm not being warned about the use of $this?

1 comment
Comment actions Permalink

Nope, not really. There's even no request for that, it must be a rare use case. We have a similar request for HTML, but not for PHP, so if you feel like it's gonna get votes, please submit one: https://youtrack.jetbrains.com/issue/WEB-32239
https://youtrack.jetbrains.com/newIssue?project=WI

0

Please sign in to leave a comment.