Make FileRepo::newFatal() take variadic params

Change-Id: I84abb7e6f7126af647b69b038848bb4d68d846b0
This commit is contained in:
Reedy 2020-05-28 22:39:11 +01:00
parent 8cbf108de7
commit f34c647098

View file

@ -1764,10 +1764,11 @@ class FileRepo {
* Create a new fatal error
*
* @param string $message
* @param mixed ...$parameters
* @return Status
*/
public function newFatal( $message /*, parameters...*/ ) {
$status = Status::newFatal( ...func_get_args() );
public function newFatal( $message, ...$parameters ) {
$status = Status::newFatal( $message, ...$parameters );
$status->cleanCallback = $this->getErrorCleanupFunction();
return $status;