Skip to content

[CodeQuality] Resolve type on Collection<string, ClassName> docblock to correct target type when has indexBy #424

[CodeQuality] Resolve type on Collection<string, ClassName> docblock to correct target type when has indexBy

[CodeQuality] Resolve type on Collection<string, ClassName> docblock to correct target type when has indexBy #424

Triggered via pull request December 22, 2024 10:24
Status Failure
Total duration 27s
Artifacts

code_analysis_reusable.yaml

on: pull_request
rector  /  rector
rector / rector
Matrix: code_analysis_reusable / code_analysis
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 2 warnings
code_analysis_reusable / PHPStan: rules/CodeQuality/Rector/Class_/AddReturnDocBlockToCollectionPropertyGetterByToManyAnnotationRector.php#L129
Method Rector\Doctrine\TypeAnalyzer\CollectionTypeFactory::createType() invoked with 3 parameters, 2 required.
code_analysis_reusable / PHPStan: rules/CodeQuality/Rector/Property/ImproveDoctrineCollectionDocTypeInEntityRector.php#L211
Method Rector\Doctrine\TypeAnalyzer\CollectionTypeFactory::createType() invoked with 3 parameters, 2 required.
code_analysis_reusable / PHPStan: rules/CodeQuality/Rector/Property/ImproveDoctrineCollectionDocTypeInEntityRector.php#L223
Method Rector\Doctrine\TypeAnalyzer\CollectionTypeFactory::createType() invoked with 3 parameters, 2 required.
code_analysis_reusable / PHPStan: rules/CodeQuality/Rector/Property/ImproveDoctrineCollectionDocTypeInEntityRector.php#L260
Method Rector\Doctrine\TypeAnalyzer\CollectionTypeFactory::createType() invoked with 3 parameters, 2 required.
code_analysis_reusable / PHPStan: rules/CodeQuality/SetterCollectionResolver.php#L85
Method Rector\Doctrine\TypeAnalyzer\CollectionTypeFactory::createType() invoked with 3 parameters, 2 required.
code_analysis_reusable / PHPStan: src/NodeManipulator/ToManyRelationPropertyTypeResolver.php#L97
Method Rector\Doctrine\TypeAnalyzer\CollectionTypeFactory::createType() invoked with 3 parameters, 2 required.
code_analysis_reusable / PHPStan: src/TypeAnalyzer/CollectionTypeFactory.php#L27
Method Rector\Doctrine\TypeAnalyzer\CollectionTypeFactory::resolveKeyType() never returns PHPStan\Type\StringType so it can be removed from the return type.
code_analysis_reusable / PHPStan
Process completed with exit code 1.
code_analysis_reusable / Composer Validate
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
code_analysis_reusable / PHPStan
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636