ChunkRequestTask: fix @var for error hook fetch

This commit is contained in:
Dylan K. Taylor 2020-01-29 19:36:52 +00:00
parent a604176ac2
commit 68bea6d4aa

View File

@ -68,7 +68,7 @@ class ChunkRequestTask extends AsyncTask{
} }
public function onError() : void{ public function onError() : void{
/** @var \Closure $hook */ /** @var \Closure|null $hook */
$hook = $this->fetchLocal(self::TLS_KEY_ERROR_HOOK); $hook = $this->fetchLocal(self::TLS_KEY_ERROR_HOOK);
if($hook !== null){ if($hook !== null){
$hook(); $hook();