mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 20:14:31 +00:00
Modernize private property declarations in Threaded classes
I previously avoided this due to being unsure of the effects; however, it's clear that we already use typed properties on Threaded things in other places anyway, and the only known issues are with uninit properties, and arrays.
This commit is contained in:
@@ -31,8 +31,7 @@ class ServerKiller extends Thread{
|
||||
/** @var int */
|
||||
public $time;
|
||||
|
||||
/** @var bool */
|
||||
private $stopped = false;
|
||||
private bool $stopped = false;
|
||||
|
||||
/**
|
||||
* @param int $time
|
||||
|
Reference in New Issue
Block a user