X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fpoolcounter%2FPoolCounterWork.php;h=737967959f953b51f33f7a2b956c605d682a0971;hb=165d3cc50b0c0cb43eb284f6c21a8d1b7b4a7ceb;hp=a570d78c48ed4664a40b1b1dc0f9965dc9657401;hpb=e968a1f431ad058dcb14adb2757bde5664b99a79;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/poolcounter/PoolCounterWork.php b/includes/poolcounter/PoolCounterWork.php index a570d78c48..737967959f 100644 --- a/includes/poolcounter/PoolCounterWork.php +++ b/includes/poolcounter/PoolCounterWork.php @@ -29,6 +29,8 @@ abstract class PoolCounterWork { protected $type = 'generic'; /** @var bool */ protected $cacheable = false; // does this override getCachedWork() ? + /** @var PoolCounter */ + private $poolCounter; /** * @param string $type The class of actions to limit concurrency for (task type) @@ -150,9 +152,7 @@ abstract class PoolCounterWork { PoolCounter::QUEUE_FULL => 'pool-queuefull', PoolCounter::TIMEOUT => 'pool-timeout' ]; - $status = Status::newFatal( isset( $errors[$status->value] ) - ? $errors[$status->value] - : 'pool-errorunknown' ); + $status = Status::newFatal( $errors[$status->value] ?? 'pool-errorunknown' ); $this->logError( $status ); return $this->error( $status ); }