Page MenuHomePhabricator

PHP 7 compatibility: Fix variable interpolation in RevisionDeleter.php
Closed, ResolvedPublic

Description

Break

mediawiki-core/includes/revisiondelete/RevisionDeleter.php:83
return new self::$allowedTypes[$typeName]( $context, $title, $ids );

into two explicit lines, due to

referenceold meaningnew meaning in PHP7
Foo::$bar['baz']()Foo::{$bar['baz']}()(Foo::$bar)['baz']()

Event Timeline

Aklapper raised the priority of this task from to Needs Triage.
Aklapper updated the task description. (Show Details)
Aklapper added a subscriber: Aklapper.

Change 256731 had a related patch set uploaded (by Umherirrender):
PHP 7 compatibility: Fix variable interpolation in RevisionDeleter.php

https://gerrit.wikimedia.org/r/256731

Change 256731 merged by jenkins-bot:
PHP 7 compatibility: Fix variable interpolation in RevisionDeleter.php

https://gerrit.wikimedia.org/r/256731

Patch merged; closing as resolved. Thanks, @Umherirrender!