Declare Event

An error is triggered when using an event which does not exist.

Place the editor cursor on the error’s line and press Ctrl+1, select Declare event … from the list of quick fix proposals and press Enter.

../../_images/e_quick_fix_declare_event_list.png

The event is declared in the appropriate scope.

../../_images/e_quick_fix_declare_event_after.png