mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Modernize private property declarations in src/network
This commit is contained in:
@ -20,12 +20,7 @@ namespace pocketmine\network\mcpe\raklib;
|
||||
use raklib\server\ipc\InterThreadChannelWriter;
|
||||
|
||||
final class PthreadsChannelWriter implements InterThreadChannelWriter{
|
||||
/** @var \Threaded */
|
||||
private $buffer;
|
||||
|
||||
public function __construct(\Threaded $buffer){
|
||||
$this->buffer = $buffer;
|
||||
}
|
||||
public function __construct(private \Threaded $buffer){}
|
||||
|
||||
public function write(string $str) : void{
|
||||
$this->buffer[] = $str;
|
||||
|
Reference in New Issue
Block a user