protected function teardown(): void
    {
        if ($this->worker) {
            @$this->worker->unregisterAll();
            $this->worker = null;
        }
    }
protected function teardown(): void
    {
        if ($this->worker) {
            @$this->worker->unregisterAll();
            $this->worker = null;
        }
    }
protected function teardown ( ) : void { if ( $ this -> worker ) { @ $ this -> worker -> unregisterAll ( ) ; $ this -> worker = null ; } }
Unregisters all functions from the gearman worker and then nullifies the worker.
Unregisters all functions from the gearman worker and then nullifies the worker .