Skip to content

Deprecate magic setters and getters for Events #10

Description

@juniwalk

Deprecate __set / __get / __isset magic methods as they cause more issues than is worth.

Explore alternative of __call magic method to setters if it causes the same issues.

// Standard way of adding event listener
$form->when('render', fn() => $form->setService($service), 0);

// Deprecated way of adding event listener
$form->onRender[0] = fn() => $form->setService($service);

// Possible way of adding event listener
$form->onRender(0, fn() => $form->setService($service));

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions