Page MenuHomePhabricator

Generic.Functions.CallTimePassByReference.NotAllowed false positive when using php5.4 array syntax []
Closed, ResolvedPublic

Description

Will file an upstream bug in a bit.

Basically, this is okay:

		Hooks::run( 'SecondaryDataUpdates', array( $title, $old, $recursive, $parserOutput, &$updates ) );

but this is not:

		Hooks::run( 'SecondaryDataUpdates', [ $title, $old, $recursive, $parserOutput, &$updates ] );

Event Timeline

Legoktm raised the priority of this task from to Needs Triage.
Legoktm updated the task description. (Show Details)
Legoktm subscribed.

Change 271216 had a related patch set uploaded (by Legoktm):
Disable Generic.Functions.CallTimePassByReference.NotAllowed

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

Change 271216 merged by jenkins-bot:
Disable Generic.Functions.CallTimePassByReference.NotAllowed

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

Can this be closed as resolved please since it looks like it has been done and fixed upstream?

Paladox moved this task from Backlog to Patch merged upstream on the Upstream board.
Paladox removed a subscriber: gerritbot.
Aklapper claimed this task.

Closed in upstream; merged in downstream... I'd say so. Thanks! :)