Closed KorvinSzanto closed 6 years ago
See #64 that could be used for this as well.
https://github.com/phan/phan/wiki/Annotating-Your-Source-Code#phan-closure-scope is similar to what is discussed here
@KorvinSzanto , if you wish to pursue this further, please bring this up as a new thread on the FIG mailing list for discussion -- https://groups.google.com/forum/#!forum/php-fig
In writing tests for abstract classes, it's often useful to stub abstract methods with working code that can access protected members. In PHPUnit, this looks like this:
Would it be useful to be able to annotate the closure with something like
@scope AbstractFoo
so that IDE's don't mark$this->doSomething()
as an error?