phpday 2027 - Call for Papers

EventListener::setErrorCallback

(PECL event >= 1.2.6-beta)

EventListener::setErrorCallback — Set event listener's error callback

Description

public function EventListener::setErrorCallback( string $cb ): void

Set event listener's error callback

Parameters

cb

The error callback. Should match the following prototype:

function callback( EventListener $listener = null , mixed $data = null ): void
listener

The EventListener object.

data

User custom data attached to the callback.

Return Values

See Also

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top