Skip to content

Commit

Permalink
Merge pull request #6005 from kenjis/remove-EVENT_PRIORITY_NORMAL
Browse files Browse the repository at this point in the history
fix: replace EVENT_PRIORITY_NORMAL with Events::PRIORITY_NORMAL
  • Loading branch information
kenjis authored May 18, 2022
2 parents 0153f4f + be2423d commit 490e9bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Events/Events.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public static function initialize()
* @param callable $callback
* @param int $priority
*/
public static function on($eventName, $callback, $priority = EVENT_PRIORITY_NORMAL)
public static function on($eventName, $callback, $priority = self::PRIORITY_NORMAL)
{
if (! isset(static::$listeners[$eventName])) {
static::$listeners[$eventName] = [
Expand Down

0 comments on commit 490e9bc

Please sign in to comment.