GlobalFunctions: Deprecate swap()
authorKevin Israel <pleasestand@live.com>
Wed, 18 Jun 2014 01:40:03 +0000 (21:40 -0400)
committerKrinkle <krinklemail@gmail.com>
Wed, 18 Jun 2014 02:31:03 +0000 (02:31 +0000)
commit26e1e083e8bfd4f6e95baaeec6a681c2c0d74531
tree14d1cd346b6aa6fdccf14b2d83c3ee5e9b43a5a1
parentc7772da144d9b7b3975c53e6698bfdd3c0b4baec
GlobalFunctions: Deprecate swap()

This unprefixed function, added in r7198 (2b3f4c749d3d), has been
unused since r12411 (f2a59db33f33).

It is short and simple enough that on the rare occasions it is needed,
it can be inlined or copied into the calling class as a private method.

Alternatively, the idiom `list( $a, $b ) = array( $b, $a )` can be used.

Change-Id: Ieb4602597a54eb21a5de177fee6dafa7ac71ce1d
includes/GlobalFunctions.php
tests/phpunit/includes/GlobalFunctions/GlobalTest.php