You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At present, hussar will not add require_once statements for classes referenced relative to the file's namespace. That is, if we never see the fully-qualified namespace to a class, it will be absent from the .class-index cache and inline greps, resulting in false-positive UnknownClass errors.
We can support this by including filenames in the grep and looking for a namespace declaration within locate_class_files.
The text was updated successfully, but these errors were encountered:
caipre
changed the title
Support autoloading for relative namespacing
Support autoloading for relative namespaces
Apr 16, 2015
At present, hussar will not add
require_once
statements for classes referenced relative to the file's namespace. That is, if we never see the fully-qualified namespace to a class, it will be absent from the.class-index
cache and inlinegrep
s, resulting in false-positiveUnknownClass
errors.We can support this by including filenames in the
grep
and looking for anamespace
declaration withinlocate_class_files
.The text was updated successfully, but these errors were encountered: