Jump to content

Builtin hooks overrides protected method to public


Recommended Posts

/var/www/html/ips/applications/downloads/hooks/apiForum.php
  20     ERROR Method _delete (public) does not have same visibility as in IPS\Node\Api\_NodeController (protected) (H102)
/var/www/html/ips/applications/cms/hooks/apiForum.php
  20     ERROR Method _delete (public) does not have same visibility as in IPS\Node\Api\_NodeController (protected) (H102)

This isn't causing me any problems, but I added this lint rule because changing protected -> public will break any other hooks that still override as protected (since if they end up overriding from public back to protected, that will cause a fatal error).

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...