Skip to content

IBX-9727: Added missing type hints #516

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

IBX-9727: Added missing type hints #516

wants to merge 1 commit into from

Conversation

alongosz
Copy link
Member

Caution

These changes are volatile and - in some repositories - extensive, so they need to be carefully reviewed before merging.

🎫 Issue IBX-9727

Description:

Added missing strict type hints using \Rector\Set\ValueObject\SetList::TYPE_DECLARATION set.
Additionally FQCNs have been imported for every affected file using PHP CS Fixer, in some cases they might override unrelated lines.

For QA:

Regression tests.

Applied Rectors:
  * Rector\TypeDeclaration\Rector\ArrowFunction\AddArrowFunctionReturnTypeRector
  * Rector\TypeDeclaration\Rector\Class_\AddTestsVoidReturnTypeWhereNoReturnRector
  * Rector\TypeDeclaration\Rector\ClassMethod\AddMethodCallBasedStrictParamTypeRector
  * Rector\TypeDeclaration\Rector\ClassMethod\AddParamTypeBasedOnPHPUnitDataProviderRector
  * Rector\TypeDeclaration\Rector\ClassMethod\AddParamTypeFromPropertyTypeRector
  * Rector\TypeDeclaration\Rector\ClassMethod\AddReturnTypeDeclarationBasedOnParentClassMethodRector
  * Rector\TypeDeclaration\Rector\ClassMethod\AddVoidReturnTypeWhereNoReturnRector
  * Rector\TypeDeclaration\Rector\ClassMethod\BoolReturnTypeFromBooleanConstReturnsRector
  * Rector\TypeDeclaration\Rector\ClassMethod\BoolReturnTypeFromBooleanStrictReturnsRector
  * Rector\TypeDeclaration\Rector\ClassMethod\NumericReturnTypeFromStrictReturnsRector
  * Rector\TypeDeclaration\Rector\ClassMethod\NumericReturnTypeFromStrictScalarReturnsRector
  * Rector\TypeDeclaration\Rector\ClassMethod\ParamTypeByMethodCallTypeRector
  * Rector\TypeDeclaration\Rector\ClassMethod\ParamTypeByParentCallTypeRector
  * Rector\TypeDeclaration\Rector\ClassMethod\ReturnNeverTypeRector
  * Rector\TypeDeclaration\Rector\ClassMethod\ReturnNullableTypeRector
  * Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromMockObjectRector
  * Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromReturnDirectArrayRector
  * Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromReturnNewRector
  * Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictConstantReturnRector
  * Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictNativeCallRector
  * Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictNewArrayRector
  * Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictParamRector
  * Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictTypedCallRector
  * Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictTypedPropertyRector
  * Rector\TypeDeclaration\Rector\ClassMethod\ReturnUnionTypeRector
  * Rector\TypeDeclaration\Rector\ClassMethod\StrictArrayParamDimFetchRector
  * Rector\TypeDeclaration\Rector\ClassMethod\StrictStringParamConcatRector
  * Rector\TypeDeclaration\Rector\ClassMethod\StringReturnTypeFromStrictScalarReturnsRector
  * Rector\TypeDeclaration\Rector\ClassMethod\StringReturnTypeFromStrictStringReturnsRector
  * Rector\TypeDeclaration\Rector\Class_\PropertyTypeFromStrictSetterGetterRector
  * Rector\TypeDeclaration\Rector\Class_\TypedPropertyFromCreateMockAssignRector
  * Rector\TypeDeclaration\Rector\Closure\AddClosureVoidReturnTypeWhereNoReturnRector
  * Rector\TypeDeclaration\Rector\Closure\ClosureReturnTypeRector
  * Rector\TypeDeclaration\Rector\Empty_\EmptyOnNullableObjectToInstanceOfRector
  * Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector
  * Rector\TypeDeclaration\Rector\Property\TypedPropertyFromStrictConstructorRector
  * Rector\TypeDeclaration\Rector\Property\TypedPropertyFromStrictSetUpRector
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot
3.4% Duplication on New Code (required ≤ 3%)
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants