Move it to the StringUtils class, and make it throw a dedicated exception. Update code in media/ to use the new method. Those seemed to be the only usages across all known MW code [1], so hard-deprecate the method as well. [1] - https://codesearch.wmcloud.org/search/?q=wfUnpack&files=&excludeFiles=&repos= Change-Id: I82ce96b6373443cf57a48b98595ca05290f37349
11 lines
123 B
PHP
11 lines
123 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Libs;
|
|
|
|
use Exception;
|
|
|
|
/**
|
|
* @since 1.42
|
|
*/
|
|
class UnpackFailedException extends Exception {
|
|
}
|