mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Merge commit '763c8ebfe3bb8a597768d86040fee130c8fc7ab8'
# Conflicts: # resources/vanilla # src/pocketmine/Worker.php # src/thread/CommonThreadPartsTrait.php
This commit is contained in:
commit
abe4f1bf25
@ -31,7 +31,7 @@ use const PTHREADS_INHERIT_ALL;
|
||||
abstract class Thread extends \Thread{
|
||||
use CommonThreadPartsTrait;
|
||||
|
||||
public function start(?int $options = PTHREADS_INHERIT_ALL) : bool{
|
||||
public function start(int $options = PTHREADS_INHERIT_ALL) : bool{
|
||||
//this is intentionally not traitified
|
||||
ThreadManager::getInstance()->add($this);
|
||||
|
||||
|
@ -31,7 +31,7 @@ use const PTHREADS_INHERIT_ALL;
|
||||
abstract class Worker extends \Worker{
|
||||
use CommonThreadPartsTrait;
|
||||
|
||||
public function start(?int $options = PTHREADS_INHERIT_ALL) : bool{
|
||||
public function start(int $options = PTHREADS_INHERIT_ALL) : bool{
|
||||
//this is intentionally not traitified
|
||||
ThreadManager::getInstance()->add($this);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user