Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonTheAdams committed Apr 3, 2023
2 parents ded346c + 05f4368 commit 67b0a4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ValidationRuleSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,11 +342,12 @@ private function getParameterTypeName(ReflectionParameter $parameter)
/**
* Takes a validation rule string and returns the corresponding rule instance.
*
* @since 1.3.2 use list syntax for PHP 7.0 compatibility
* @since 1.0.0
*/
private function getRuleFromString(string $rule): ValidationRule
{
[$ruleId, $ruleOptions] = array_pad(explode(':', $rule, 2), 2, null);
list($ruleId, $ruleOptions) = array_pad(explode(':', $rule, 2), 2, null);

/**
* @var ValidationRule $ruleClass
Expand Down

0 comments on commit 67b0a4d

Please sign in to comment.