X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=includes%2FPingback.php;h=8d7c3b6e4dd2ee1da9e6e39305ba33c697f81af1;hb=3d758d74956fb52cff50479e3f0f6545850df49d;hp=64b54f1e4b1d99aa0c5f8343349eb61d1c96b923;hpb=71a653a495cf2de243ff25d5941ae708f0e43a80;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__ );