Skip to content

Create own codegen #322

Create own codegen

Create own codegen #322

Triggered via pull request September 17, 2023 05:56
@koriymkoriym
synchronize #205
codegen
Status Failure
Total duration 56s
Artifacts

static-analysis.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

22 errors and 3 warnings
sa / ComposerRequireChecker
Process completed with exit code 1.
sa / PHPStan: src/AopCodeGen.php#L34
Method Ray\Aop\AopCodeGen::generate() has parameter $sourceClass with generic class ReflectionClass but does not specify its types: T
sa / PHPStan: src/AopCodeGen.php#L36
Parameter #1 $filename of function file_get_contents expects string, string|false given.
sa / PHPStan: src/AopCodeGen.php#L37
Parameter #1 $code of function token_get_all expects string, string|false given.
sa / PHPStan: src/AopCodeGen.php#L68
Negated boolean expression is always true.
sa / PHPStan: src/AopCodeGen.php#L86
Method Ray\Aop\AopCodeGen::addMethods() has parameter $class with generic class ReflectionClass but does not specify its types: T
sa / PHPStan: src/AopCodeGen.php#L99
Cannot call method getName() on ReflectionType|null.
sa / PHPStan: src/AopCodeGen.php#L111
Method Ray\Aop\AopCodeGen::getMethodSignature() has no return type specified.
sa / PHPStan: src/AopCodeGen.php#L182
Cannot call method allowsNull() on ReflectionType|null.
sa / PHPStan: src/AopCodeGen.php#L182
Cannot call method getName() on ReflectionType|null.
sa / PHPStan: src/AopCodeGen.php#L191
Method Ray\Aop\AopCodeGen::prependBackslashIfNotPrimitive() has no return type specified.
sa / PHPMD
Process completed with exit code 2.
sa / Psalm: src/AopCodeGen.php#L68
RedundantCondition: Type false for $inMethod is always falsy
sa / Psalm: src/AopCodeGen.php#L68
RedundantCondition: Operand of type true is always truthy
sa / Psalm: src/AopCodeGen.php#L98
MixedAssignment: Unable to determine the type that $signature is being assigned to
sa / Psalm: src/AopCodeGen.php#L99
UndefinedMethod: Method ReflectionType::getName does not exist
sa / Psalm: src/AopCodeGen.php#L101
MixedArgument: Argument 2 of sprintf cannot be mixed, expecting float|int|string
sa / Psalm: src/AopCodeGen.php#L111
MissingReturnType: Method Ray\Aop\AopCodeGen::getMethodSignature does not have a return type, expecting non-empty-string
sa / Psalm: src/AopCodeGen.php#L122
MixedAssignment: Unable to determine the type that $attribute is being assigned to
sa / Psalm: src/AopCodeGen.php#L123
MissingClosureParamType: Parameter $arg has no provided type
sa / Psalm: src/AopCodeGen.php#L125
MixedArgument: Argument 2 of array_map cannot be mixed, expecting array<array-key, mixed>
sa / Psalm: src/AopCodeGen.php#L125
MixedMethodCall: Cannot determine the type of $attribute when calling method getArguments
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
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/