HumHub Documentation (unofficial)

PhpdocToPropertyTypeFixer extends AbstractPhpdocToTypeDeclarationFixer
in package
implements ExperimentalFixerInterface

FinalYes
Tags
phpstan-import-type

_CommonTypeInfo from AbstractPhpdocToTypeDeclarationFixer

Table of Contents

Interfaces

ExperimentalFixerInterface

Constants

TYPE_CHECK_TEMPLATE  = '<?php class A { private %s $b; }'

Properties

$skippedTypes  : array<string, true>

Methods

getDefinition()  : FixerDefinitionInterface
getPriority()  : int
{@inheritdoc}
isCandidate()  : bool
applyFix()  : void
createTokensFromRawType()  : Tokens
isSkippedType()  : bool
findNextUntypedPropertiesDeclaration()  : array<string, int>
fixClass()  : void
resolveApplicableType()  : _CommonTypeInfo|null

Constants

Properties

Methods

getPriority()

{@inheritdoc}

public getPriority() : int

Must run before NoSuperfluousPhpdocTagsFixer, PhpdocAlignFixer. Must run after AlignMultilineCommentFixer, CommentToPhpdocFixer, PhpdocIndentFixer, PhpdocScalarFixer, PhpdocToCommentFixer, PhpdocTypesFixer.

Return values
int

findNextUntypedPropertiesDeclaration()

private findNextUntypedPropertiesDeclaration(Tokens $tokens, int $index) : array<string, int>
Parameters
$tokens : Tokens
$index : int
Return values
array<string, int>

resolveApplicableType()

private resolveApplicableType(array<string, int> $propertyIndices, array<int, Annotation$annotations) : _CommonTypeInfo|null
Parameters
$propertyIndices : array<string, int>
$annotations : array<int, Annotation>
Return values
_CommonTypeInfo|null

        
On this page

Search results