Skip to content

Commit

Permalink
Merge pull request #1 from lphkxd/patch-1
Browse files Browse the repository at this point in the history
Update Validated.php
  • Loading branch information
tmtbe authored Jul 18, 2019
2 parents dd1d6aa + 1b12a63 commit e3ee40e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Validate/Annotation/Validated.php
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ public static function buildRole($reflectionClass, $roles = [])
}
}
}
self::$cache[$reflectionClass->name] = $validRole;
return array_merge($validRole, $roles);
self::$cache[$reflectionClass->name] = array_merge($validRole, $roles);
return self::$cache[$reflectionClass->name];
}
}
}

0 comments on commit e3ee40e

Please sign in to comment.