X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FPingback.php;h=8d7c3b6e4dd2ee1da9e6e39305ba33c697f81af1;hb=4226fada45a83ad56e91ce7638d17d12fecec8ca;hp=64b54f1e4b1d99aa0c5f8343349eb61d1c96b923;hpb=3d54d208bc0dd54baef18b3891ff0faf1d300214;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Pingback.php b/includes/Pingback.php index 64b54f1e4b..8d7c3b6e4d 100644 --- a/includes/Pingback.php +++ b/includes/Pingback.php @@ -50,8 +50,8 @@ class Pingback { protected $id; /** - * @param Config $config - * @param LoggerInterface $logger + * @param Config|null $config + * @param LoggerInterface|null $logger */ public function __construct( Config $config = null, LoggerInterface $logger = null ) { $this->config = $config ?: RequestContext::getMain()->getConfig(); @@ -99,7 +99,7 @@ class Pingback { return $dbw->upsert( 'updatelog', [ 'ul_key' => $this->key, 'ul_value' => $timestamp ], - [ 'ul_key' => $this->key ], + [ 'ul_key' ], [ 'ul_value' => $timestamp ], __METHOD__ );