Skip to content

Introduce definition factory #505

Introduce definition factory

Introduce definition factory #505

Triggered via pull request October 26, 2024 13:13
Status Failure
Total duration 35s
Artifacts

php.yml

on: pull_request
unit-testing
26s
unit-testing
static-analysis
17s
static-analysis
code-linting
20s
code-linting
Fit to window
Zoom out
Zoom in

Annotations

23 errors and 8 warnings
MixedAssignment: src/Bootstrap/ServiceWiringListener.php#L65
src/Bootstrap/ServiceWiringListener.php:65:21: MixedAssignment: Unable to determine the type that $service is being assigned to (see https://psalm.dev/032)
MixedArgument: src/Bootstrap/ServiceWiringListener.php#L66
src/Bootstrap/ServiceWiringListener.php:66:77: MixedArgument: Argument 1 of Cspray\AnnotatedContainer\Bootstrap\_home_runner_work_annotated_container_annotated_container_src_Bootstrap_ServiceWiringListener_php_17_803::createServiceFromServiceDefinition cannot be mixed|object, expecting object (see https://psalm.dev/030)
InvalidArgument: src/ContainerFactory/AbstractContainerFactory.php#L73
src/ContainerFactory/AbstractContainerFactory.php:73:85: InvalidArgument: Argument 2 of Cspray\AnnotatedContainer\ContainerFactory\AliasResolution\AliasDefinitionResolver::resolveAlias expects Cspray\Typiphy\ObjectType, but Cspray\AnnotatedContainer\Reflection\Type provided (see https://psalm.dev/004)
InvalidArgument: src/ContainerFactory/AbstractContainerFactory.php#L110
src/ContainerFactory/AbstractContainerFactory.php:110:45: InvalidArgument: Argument 1 of Cspray\AnnotatedContainer\ContainerFactory\ParameterStore::fetch expects Cspray\Typiphy\Type|Cspray\Typiphy\TypeIntersect|Cspray\Typiphy\TypeUnion, but Cspray\AnnotatedContainer\Reflection\Type|Cspray\AnnotatedContainer\Reflection\TypeIntersect|Cspray\AnnotatedContainer\Reflection\TypeUnion provided (see https://psalm.dev/004)
InvalidArgument: src/ContainerFactory/AbstractContainerFactory.php#L118
src/ContainerFactory/AbstractContainerFactory.php:118:17: InvalidArgument: Argument 3 of Cspray\AnnotatedContainer\ContainerFactory\ServiceCollectorReference::__construct expects Cspray\Typiphy\Type|Cspray\Typiphy\TypeIntersect|Cspray\Typiphy\TypeUnion, but Cspray\AnnotatedContainer\Reflection\Type|Cspray\AnnotatedContainer\Reflection\TypeIntersect|Cspray\AnnotatedContainer\Reflection\TypeUnion provided (see https://psalm.dev/004)
UndefinedClass: src/ContainerFactory/AbstractContainerFactory.php#L120
src/ContainerFactory/AbstractContainerFactory.php:120:36: UndefinedClass: Class, interface or enum named Cspray\Typiphy\ObjectType does not exist (see https://psalm.dev/019)
UndefinedClass: src/ContainerFactory/AliasResolution/AliasDefinitionResolver.php#L12
src/ContainerFactory/AliasResolution/AliasDefinitionResolver.php:12:9: UndefinedClass: Class, interface or enum named Cspray\Typiphy\ObjectType does not exist (see https://psalm.dev/019)
UndefinedClass: src/ContainerFactory/AliasResolution/StandardAliasDefinitionResolver.php#L14
src/ContainerFactory/AliasResolution/StandardAliasDefinitionResolver.php:14:9: UndefinedClass: Class, interface or enum named Cspray\Typiphy\ObjectType does not exist (see https://psalm.dev/019)
MixedInferredReturnType: src/ContainerFactory/AliasResolution/StandardAliasDefinitionResolver.php#L15
src/ContainerFactory/AliasResolution/StandardAliasDefinitionResolver.php:15:9: MixedInferredReturnType: Could not verify return type 'Cspray\AnnotatedContainer\ContainerFactory\AliasResolution\AliasDefinitionResolution' for Cspray\AnnotatedContainer\ContainerFactory\AliasResolution\StandardAliasDefinitionResolver::resolveAlias (see https://psalm.dev/047)
UndefinedClass: src/ContainerFactory/AliasResolution/StandardAliasDefinitionResolver.php#L72
src/ContainerFactory/AliasResolution/StandardAliasDefinitionResolver.php:72:82: UndefinedClass: Class, interface or enum named Cspray\Typiphy\ObjectType does not exist (see https://psalm.dev/019)
code-linting: src/Reflection/TypeFactory.php#L42
Expected 1 space after MATCH keyword; 0 found
code-linting: src/Reflection/TypeFactory.php#L116
Expected 0 spaces after variadic operator for argument "$additional"; 1 found
code-linting: src/Reflection/TypeFactory.php#L131
Expected 0 spaces after variadic operator for argument "$additional"; 1 found
code-linting: src/Reflection/TypeFactory.php#L143
Closing brace must be on a line by itself
code-linting: src/Reflection/TypeFactory.php#L151
Expected 0 spaces after variadic operator for argument "$additional"; 1 found
code-linting: src/Reflection/TypeFactory.php#L175
Expected 0 spaces after variadic operator for argument "$additional"; 1 found
code-linting: src/Reflection/TypeFactory.php#L179
Closing brace must be on a line by itself
code-linting: src/Reflection/TypeFactory.php#L194
The closing brace for the class must go on the next line after the body
code-linting: src/Reflection/Type.php#L12
The closing brace for the interface must go on the next line after the body
code-linting: src/Reflection/TypeIntersect.php#L17
The closing brace for the interface must go on the next line after the body
unit-testing: test/Unit/Bootstrap/ComposerRuntimePackagesComposerJsonPathProviderTest.php#L64
Failed asserting that two arrays are identical.
unit-testing
Failed asserting that exception of type "Cspray\AnnotatedContainer\Exception\ServiceDelegateReturnsUnionType" matches expected exception "Cspray\AnnotatedContainer\Exception\InvalidServiceDelegate". Message was: "The ServiceDelegate Cspray\AnnotatedContainer\Unit\LogicalErrorApps\ImplicitServiceDelegateUnionType\FooFactory returns a union type. At this time union types are not supported." at
unit-testing
Process completed with exit code 2.
static-analysis
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
code-linting
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
code-linting: src/Reflection/TypeFactory.php#L13
Usage of ELSE IF is discouraged; use ELSEIF instead
code-linting: src/Reflection/TypeFactory.php#L24
Usage of ELSE IF is discouraged; use ELSEIF instead
code-linting: src/Reflection/TypeFactory.php#L30
Usage of ELSE IF is discouraged; use ELSEIF instead
code-linting: src/Definition/Serializer/XmlContainerDefinitionSerializer.php#L237
Usage of ELSE IF is discouraged; use ELSEIF instead
code-linting: src/Definition/Serializer/XmlContainerDefinitionSerializer.php#L242
Usage of ELSE IF is discouraged; use ELSEIF instead
unit-testing
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/