Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.4] Add replaceDimensions for validator messages #17946

Merged
merged 1 commit into from
Feb 17, 2017
Merged

[5.4] Add replaceDimensions for validator messages #17946

merged 1 commit into from
Feb 17, 2017

Conversation

Hugome
Copy link
Contributor

@Hugome Hugome commented Feb 16, 2017

Add replaceDimensions for allowing the uses of nested arguments in validator messages.

Ex:

The image is to small (Minimum :min_width x :min_height)

@themsaid
Copy link
Member

@Hugome can you add some tests?

@Hugome
Copy link
Contributor Author

Hugome commented Feb 16, 2017

@themsaid Yep i have added testNestedAttributesAreReplacedInDimensions in ValidationValidatorTest

* @param array $parameters
* @return string
*/
protected function replaceDimensions($message, $attribute, $rule, $parameters)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be type hinting: protected function replaceDimensions($message, $attribute, $rule, array $parameters)

@taylorotwell taylorotwell merged commit a8e8b75 into laravel:5.4 Feb 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants