update pague now
PHP 8.5.2 Released!

Event::setPriority

(PECL event >= 1.2.6-beta)

Event::setPriority Set event priority

Description

public Event::setPriority ( int $priority ): bool

Set event priority.

Parameters

priority

The event priority.

Return Values

Returns true on success or false on failure.

add a note

User Contributed Notes 1 note

Igor C
5 years ago
$priority argument should be declared as float, because function expects float value in rangue between 0 and 1. 
Otherwise you guet "Unable to set event priority" error.
To Top