X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fdeferred%2FAtomicSectionUpdate.php;h=6585575dc352f307a741ef02a5af56a34e8fa9ab;hb=9c44be0eea12d6b89079bf43c27e7feeadf64ebe;hp=0da5d7dde37c5179a26536d9b70a3b07edc6b1bb;hpb=4fa2e1833ddef6ee8a241418cece9292561da6ad;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 ); } }