PHP 8.4.0 RC3 available for testing

Event::setPriority

(PECL event >= 1.2.6-beta)

Event::setPrioritySet event priority

Descrição

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

Set event priority.

Parâmetros

priority

The event priority.

Valor Retornado

Retorna true em caso de sucesso ou false em caso de falha.

adicione uma nota

Notas Enviadas por Usuários (em inglês) 1 note

up
0
Igor K
4 years ago
$priority argument should be declared as float, because function expects float value in range between 0 and 1.
Otherwise you get "Unable to set event priority" error.
To Top