X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fdeferred%2FAtomicSectionUpdate.php;h=6585575dc352f307a741ef02a5af56a34e8fa9ab;hb=61adc1e146dbfc782af0a3fcc9ead094d1513706;hp=0da5d7dde37c5179a26536d9b70a3b07edc6b1bb;hpb=500889f19005b4aed93c5b6eaafd35689fce7dcd;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/deferred/AtomicSectionUpdate.php b/includes/deferred/AtomicSectionUpdate.php index 0da5d7dde3..6585575dc3 100644 --- a/includes/deferred/AtomicSectionUpdate.php +++ b/includes/deferred/AtomicSectionUpdate.php @@ -9,7 +9,7 @@ class AtomicSectionUpdate implements DeferrableUpdate, DeferrableCallback { private $dbw; /** @var string */ private $fname; - /** @var callable */ + /** @var callable|null */ private $callback; /** @@ -24,7 +24,7 @@ class AtomicSectionUpdate implements DeferrableUpdate, DeferrableCallback { $this->callback = $callback; if ( $this->dbw->trxLevel() ) { - $this->dbw->onTransactionResolution( [ $this, 'cancelOnRollback' ] ); + $this->dbw->onTransactionResolution( [ $this, 'cancelOnRollback' ], $fname ); } }