Skip to content

Commit ab3ab2d

Browse files
authored
Use type-less constants to support php8.1+ (Muqsit#254)
PocketMine still sits at php8.1 as the minimum version.
1 parent 51fcd3c commit ab3ab2d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/muqsit/invmenu/session/PlayerWindowDispatcher.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222

2323
final class PlayerWindowDispatcher{
2424

25-
public const int STATE_SENDING = 0;
26-
public const int STATE_FINALIZING = 1;
27-
public const int STATE_COMPLETED = 2;
25+
public const STATE_SENDING = 0;
26+
public const STATE_FINALIZING = 1;
27+
public const STATE_COMPLETED = 2;
2828

2929
private ?TaskHandler $task_handler = null;
3030
private ?Closure $container_open_callback = null;
@@ -196,4 +196,4 @@ public function then(InvMenu $menu, ?string $name, ?Closure $callback) : void{
196196
}
197197
$this->after_finalization = [$menu, $name, $callback];
198198
}
199-
}
199+
}

0 commit comments

Comments
 (0)