File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/Illuminate/Validation Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -78,10 +78,9 @@ public static function withMessages(array $messages)
7878 }
7979
8080 /**
81- * Create a summary error message from the validation errors.
82- *
83- * @param \Illuminate\Contracts\Validation\Validator $validator
81+ * Create a error message summary from the validation errors.
8482 *
83+ * @param \Illuminate\Contracts\Validation\Validator $validator
8584 * @return string
8685 */
8786 protected static function summarize ($ validator )
@@ -96,7 +95,8 @@ protected static function summarize($validator)
9695
9796 if ($ additional = count ($ messages )) {
9897 $ pluralized = 1 === $ additional ? 'error ' : 'errors ' ;
99- $ message .= " (and $ additional more $ pluralized) " ;
98+
99+ $ message .= " (and {$ additional } more {$ pluralized }) " ;
100100 }
101101
102102 return $ message ;
You can’t perform that action at this time.
0 commit comments