Merge commit '763c8ebfe3bb8a597768d86040fee130c8fc7ab8'

# Conflicts:
#	resources/vanilla
#	src/pocketmine/Worker.php
#	src/thread/CommonThreadPartsTrait.php
This commit is contained in:
Dylan K. Taylor 2020-06-26 18:46:01 +01:00
commit abe4f1bf25
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);