Make FileRepo::newFatal() take variadic params
Change-Id: I84abb7e6f7126af647b69b038848bb4d68d846b0
This commit is contained in:
parent
8cbf108de7
commit
f34c647098
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue