Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.

Namespace Question

R_JR_J Cheerleader & TroubleshooterMunich Moderator

I was brave enough to name one of the classes in my plugin "SettingsController" because I am using namespaces. Nevertheless I receive the following PHP notice:

Declaration of RJ\MyPlugin\SettingsController::index($args) should be compatible with SettingsController::index()

My expectation would have been that \MyNamespace\SettingsController and \Vanilla\SettingsController are totally unrelated.

Can anyone tell me if the reason for the notice is that Vanillas class.settingscontroller.php is not namespaced (that's what I hope) or if I am wrong and PHP will always do that check for classes with the same name?


Sign In or Register to comment.