Skip to content
This repository has been archived by the owner on Apr 28, 2024. It is now read-only.

Improve extensibility #30

Merged
merged 1 commit into from
Feb 27, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ServerSideValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ protected function validateUsername($field, $value)
* @param string $rule The name of the validation rule.
* @param string $messageSet The message to display when validation against this rule fails.
*/
private function ruleWithMessage($rule, $messageSet)
protected function ruleWithMessage($rule, $messageSet)
{
// Weird way to adapt with Valitron's funky interface
$params = array_merge([$rule], array_slice(func_get_args(), 2));
Expand All @@ -191,7 +191,7 @@ private function ruleWithMessage($rule, $messageSet)
/**
* Generate and add rules from the schema.
*/
private function generateSchemaRules()
protected function generateSchemaRules()
{
foreach ($this->schema->all() as $fieldName => $field) {
if (!isset($field['validators'])) {
Expand Down