aboutsummaryrefslogtreecommitdiffstats
path: root/includes/api/ApiParse.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/api/ApiParse.php')
-rw-r--r--includes/api/ApiParse.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/api/ApiParse.php b/includes/api/ApiParse.php
index e4eb4dce1ddc..078096d64bc0 100644
--- a/includes/api/ApiParse.php
+++ b/includes/api/ApiParse.php
@@ -60,7 +60,7 @@ class ApiParse extends ApiBase {
) {
$worker = new PoolCounterWorkViaCallback( 'ApiParser', $this->getPoolKey(),
[
- 'doWork' => function () use ( $content, $title, $revId, $popts ) {
+ 'doWork' => static function () use ( $content, $title, $revId, $popts ) {
return $content->getParserOutput( $title, $revId, $popts );
},
'error' => function () {
@@ -79,7 +79,7 @@ class ApiParse extends ApiBase {
) {
$worker = new PoolCounterWorkViaCallback( 'ApiParser', $this->getPoolKey(),
[
- 'doWork' => function () use ( $page, $revId, $popts, $suppressCache ) {
+ 'doWork' => static function () use ( $page, $revId, $popts, $suppressCache ) {
return $page->getParserOutput( $popts, $revId, $suppressCache );
},
'error' => function () {