Commit 3ca9e5e2 authored by Apple's avatar Apple Committed by GitHub
Browse files

Update Worker.php

parent 5437e0f8
......@@ -72,7 +72,7 @@ abstract class Worker extends \Worker {
*
* @return bool
*/
public function start(int $options = PTHREADS_INHERIT_ALL){
public function start(?int $options = \PTHREADS_INHERIT_ALL){
ThreadManager::getInstance()->add($this);
if(!$this->isRunning() and !$this->isJoined() and !$this->isTerminated()){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment