提交 e9b13463 编写于 作者: weixin_47267244's avatar weixin_47267244

修复代码检测

上级 297f5f1b
......@@ -21,6 +21,7 @@ parameters:
treatPhpDocTypesAsCertain: false
checkGenericClassInNonGenericObjectType: false
checkMissingIterableValueType: false
reportUnmatchedIgnoredErrors: false
ignoreErrors:
- '#Access to an undefined property Imi\\Util\\LazyArrayObject::\$[^.]+.#'
......@@ -37,4 +38,12 @@ parameters:
-
message: '#Method \S+ has no return typehint specified.#'
paths:
- tests/unit/**Test.php
\ No newline at end of file
- tests/unit/**Test.php
-
message: '#class .+ not found#'
paths:
- src/Components/jwt/*
-
message: '#Lcobucci\\JWT\\UnencryptedToken#'
paths:
- src/Components/jwt/*
......@@ -141,7 +141,7 @@ class JWTValidationAop
$constraints[] = new RelatedTo($subject);
}
$constraints[] = new LooseValidAt(new FrozenClock(new \DateTimeImmutable()));
if ($constraints && !$configuration->validator()->validate($token, ...$constraints))
if (!$configuration->validator()->validate($token, ...$constraints))
{
throw new InvalidTokenException();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册