Add the ability to use a callback in bypassAuth in permissions #94
Annotations
11 errors and 4 warnings
Run psalm:
src/Authentication/DefaultOneTimePasswordAuthenticationChecker.php#L59
src/Authentication/DefaultOneTimePasswordAuthenticationChecker.php:59:17: RiskyTruthyFalsyComparison: Operand of type array<array-key, mixed>|null contains type array<array-key, mixed>, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
Run psalm:
src/Authentication/DefaultWebauthn2FAuthenticationChecker.php#L42
src/Authentication/DefaultWebauthn2FAuthenticationChecker.php:42:17: RiskyTruthyFalsyComparison: Operand of type array<array-key, mixed>|null contains type array<array-key, mixed>, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
Run psalm:
src/Authenticator/CookieAuthenticator.php#L41
src/Authenticator/CookieAuthenticator.php:41:13: RiskyTruthyFalsyComparison: Operand of type array<array-key, mixed>|null|object contains type array<array-key, mixed>, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
Run psalm:
src/Authenticator/FormAuthenticator.php#L96
src/Authenticator/FormAuthenticator.php:96:48: UndefinedFunction: Function CakeDC\Auth\Authenticator\__ does not exist (see https://psalm.dev/021)
|
Run psalm:
src/Authenticator/SocialAuthenticator.php#L66
src/Authenticator/SocialAuthenticator.php:66:13: RiskyTruthyFalsyComparison: Operand of type array<array-key, mixed>|null contains type array<array-key, mixed>, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
Run psalm:
src/Authenticator/SocialAuthenticator.php#L82
src/Authenticator/SocialAuthenticator.php:82:14: RiskyTruthyFalsyComparison: Operand of type ArrayAccess|array<array-key, mixed>|null contains type array<array-key, mixed>, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
Run psalm:
src/Authenticator/TwoFactorAuthenticator.php#L86
src/Authenticator/TwoFactorAuthenticator.php:86:14: RiskyTruthyFalsyComparison: Operand of type ArrayAccess|array<array-key, mixed> contains type array<array-key, mixed>, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
Run psalm:
src/Middleware/RbacMiddleware.php#L174
src/Middleware/RbacMiddleware.php:174:19: RedundantCast: Redundant cast to array (see https://psalm.dev/262)
|
Run psalm:
src/Rbac/Permissions/ConfigProvider.php#L83
src/Rbac/Permissions/ConfigProvider.php:83:13: RiskyTruthyFalsyComparison: Operand of type mixed|null contains type mixed, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
Run psalm:
src/Rbac/Rbac.php#L83
src/Rbac/Rbac.php:83:36: UnsafeInstantiation: Cannot safely instantiate class CakeDC\Auth\Rbac\Permissions\AbstractProvider with "new $class_name" as its constructor might change in child classes (see https://psalm.dev/229)
|
Run PHP CodeSniffer
Process completed with exit code 2.
|
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/cache@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Get composer cache directory
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Get date part for cache key
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Loading