Skip to content

Commit

Permalink
[5.3] Add missing replaceMimetypes function (#15209)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobmllr95 authored and taylorotwell committed Sep 1, 2016
1 parent c63a7fb commit 262145d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Illuminate/Validation/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -2422,6 +2422,20 @@ protected function replaceInArray($message, $attribute, $rule, $parameters)
return str_replace(':other', $this->getAttribute($parameters[0]), $message);
}

/**
* Replace all place-holders for the mimetypes rule.
*
* @param string $message
* @param string $attribute
* @param string $rule
* @param array $parameters
* @return string
*/
protected function replaceMimetypes($message, $attribute, $rule, $parameters)
{
return str_replace(':values', implode(', ', $parameters), $message);
}

/**
* Replace all place-holders for the mimes rule.
*
Expand Down

0 comments on commit 262145d

Please sign in to comment.