Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

Categories

In this Discussion

Who's Online 14

CurtisOdenericgillette422 +11 guests

Please use $Sender instead of &$Sender in event handlers.

When declaring an event handler there are a lot of instances where the $Sender parameter is declared as a reference. This is a bad practice and will break plugins in future versions of Vanilla.

So for example, do this:
public function Base_GetAppSettingsMenuItems_Handler($Sender) {
...
}
instead of this:
public function Base_GetAppSettingsMenuItems_Handler(&$Sender) {
...
}
This has been a Vanilla service announcement.

Vanilla co-founder

Comments

Sign In or Register to comment.