Skip to content

Commit

Permalink
fix validateArray($attribute, $value) should be compatible with Illum…
Browse files Browse the repository at this point in the history
…inate\Validation\Validator (#14)
  • Loading branch information
daryledesilva authored Jan 19, 2021
1 parent cf11d29 commit 668f230
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/Frozennode/Administrator/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,15 @@ public function validateDirectory($attribute, $value, $parameters)
return is_dir($value);
}

/**
* Validates that an item is an array
*/
public function validateArray($attribute, $value)
/**
* Validate that an attribute is an array.
*
* @param string $attribute
* @param mixed $value
* @param array $parameters
* @return bool
*/
public function validateArray($attribute, $value, $parameters = [])
{
return is_array($value);
}
Expand Down

0 comments on commit 668f230

Please sign in to comment.