Refine interceptor binding logic for weaved instances. #606
static-analysis.yml
on: push
sa
/
PHPStan
18s
sa
/
Psalm
28s
sa
/
PHPMD
17s
sa
/
ComposerRequireChecker
14s
Annotations
13 errors and 4 warnings
|
sa / PHPStan:
src/di/AnnotatedClassMethods.php#L41
Call to an undefined method ReflectionMethod::getAnnotation().
|
|
sa / PHPStan:
src/di/NewInstance.php#L100
Parameter #1 $bindings of method Ray\Aop\WeavedInterface::_setBindings() expects array<non-empty-string, array<Ray\Aop\MethodInterceptor>>, array<string, list<Ray\Aop\MethodInterceptor>> given.
|
|
sa / PHPStan
Process completed with exit code 1.
|
|
sa / Psalm:
src/di/AnnotatedClassMethods.php#L41
MixedAssignment: Unable to determine the type that $named is being assigned to
|
|
sa / Psalm:
src/di/AnnotatedClassMethods.php#L41
UndefinedMethod: Method ReflectionMethod::getAnnotation does not exist
|
|
sa / Psalm:
src/di/AspectBind.php#L25
MixedReturnTypeCoercion: The declared return type 'array<string, list<Ray\Aop\MethodInterceptor>>' for Ray\Di\AspectBind::inject is more specific than the inferred return type 'array<array-key, list<Ray\Aop\MethodInterceptor>>'
|
|
sa / Psalm:
src/di/AspectBind.php#L31
MixedAssignment: Unable to determine the type that $methodName is being assigned to
|
|
sa / Psalm:
src/di/AspectBind.php#L31
MixedAssignment: Unable to determine the type that $interceptorClassNames is being assigned to
|
|
sa / Psalm:
src/di/AspectBind.php#L33
MixedAssignment: Unable to determine the type that $interceptorClassName is being assigned to
|
|
sa / Psalm:
src/di/AspectBind.php#L40
MixedArrayOffset: Cannot access value on variable $instantiatedBindings[$methodName] using mixed offset
|
|
sa / Psalm:
src/di/AspectBind.php#L43
MixedReturnTypeCoercion: The type 'array<array-key, list<Ray\Aop\MethodInterceptor>>' is more general than the declared return type 'array<string, list<Ray\Aop\MethodInterceptor>>' for Ray\Di\AspectBind::inject
|
|
sa / Psalm:
src/di/Dependency.php#L140
InvalidArgument: Argument 2 of Ray\Aop\Bind::bind expects type-alias(Ray\Aop\Types::Pointcuts), but array<int, Ray\Aop\Pointcut> provided
|
|
sa / Psalm:
src/di/NewInstance.php#L100
InvalidArgument: Argument 1 of Ray\Aop\WeavedInterface::_setBindings expects type-alias(Ray\Aop\Types::MethodBindings), but array<string, list<Ray\Aop\MethodInterceptor>> provided
|
|
sa / ComposerRequireChecker
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/
|
|
sa / PHPMD
Cache not found for keys: Linux-composer-8ff93e15233d4c9d89f60f564f1c820553e89b66121b09aafe24d0b35d89c2a5, Linux-composer-
|
|
sa / PHPMD
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/
|
|
sa / Psalm
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/
|