radiate-framework / framework

A WordPress plugin and theme framework
https://radiate-framework.github.io/
MIT License
4 stars 0 forks source link

Event dispatch requires second parameter #79

Closed BenRutlandWeb closed 3 years ago

BenRutlandWeb commented 3 years ago

Describe the bug The event dispatch method requires a second parameter to be passed.

To Reproduce Steps to reproduce the behavior:

  1. Attempt to dispatch an event without a second parameter
  2. See error

Expected behavior The event to dispatch regardless of the presence of the second variable

Screenshots

Event::dispatch('wp_loaded');

Additional context Unlike do_action, apply_filters requires this to be set. Setting the second value to null is a workaround.