Skip to content

Commit

Permalink
更新验证器
Browse files Browse the repository at this point in the history
  • Loading branch information
lphkxd committed May 26, 2020
1 parent 1dc8885 commit 3beec23
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Aspect/ValidationAspect.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,18 +77,18 @@ public function process(ProceedingJoinPoint $proceedingJoinPoint)
/**
* @param $validation
* @param $verData
* @param $name
* @param $class
* @param $proceedingJoinPoint
* @param $isRequest
* @throws ValidateException
*/
private function validationData($validation, $verData, $name, $proceedingJoinPoint, $isRequest = false)
private function validationData($validation, $verData, $class, $proceedingJoinPoint, $isRequest = false)
{
/**
* @var RequestValidation $validation
*/
if (strpos($name, '::class') !== false) {
$class = 'app\\Validate\\' . $name . 'Validation';
if (strpos($class, '::class') !== false) {
$class = 'app\\Validate\\' . $class . 'Validation';
}
/**
* @var Validate $validate
Expand Down

0 comments on commit 3beec23

Please sign in to comment.