PhpdocScalarFixer
        
        extends AbstractPhpdocTypesFixer
    
    
            
            in package
            
        
    
            
            implements
                            ConfigurableFixerInterface                    
    
            
            uses
                            ConfigurableFixerTrait                    
    
Tags
Table of Contents
Interfaces
Properties
- $types : array<string, string>
 - The types to fix.
 
Methods
- getDefinition() : FixerDefinitionInterface
 - Returns the definition of the fixer.
 - getPriority() : int
 - Returns the priority of the fixer.
 - createConfigurationDefinition() : FixerConfigurationResolverInterface
 - normalize() : string
 
Properties
$types
The types to fix.
    private
    static    array<string, string>
    $types
     = ['boolean' => 'bool', 'callback' => 'callable', 'double' => 'float', 'integer' => 'int', 'real' => 'float', 'str' => 'string']
    
    
    
Methods
getDefinition()
Returns the definition of the fixer.
    public
                    getDefinition() : FixerDefinitionInterface
    Return values
FixerDefinitionInterfacegetPriority()
Returns the priority of the fixer.
    public
                    getPriority() : int
    Must run before GeneralPhpdocAnnotationRemoveFixer, GeneralPhpdocTagRenameFixer, NoBlankLinesAfterPhpdocFixer, NoEmptyPhpdocFixer, NoSuperfluousPhpdocTagsFixer, PhpdocAddMissingParamAnnotationFixer, PhpdocAlignFixer, PhpdocArrayTypeFixer, PhpdocInlineTagNormalizerFixer, PhpdocLineSpanFixer, PhpdocListTypeFixer, PhpdocNoAccessFixer, PhpdocNoAliasTagFixer, PhpdocNoEmptyReturnFixer, PhpdocNoPackageFixer, PhpdocNoUselessInheritdocFixer, PhpdocOrderByValueFixer, PhpdocOrderFixer, PhpdocParamOrderFixer, PhpdocReadonlyClassCommentToKeywordFixer, PhpdocReturnSelfReferenceFixer, PhpdocSeparationFixer, PhpdocSingleLineVarSpacingFixer, PhpdocSummaryFixer, PhpdocTagCasingFixer, PhpdocTagTypeFixer, PhpdocToParamTypeFixer, PhpdocToPropertyTypeFixer, PhpdocToReturnTypeFixer, PhpdocTrimConsecutiveBlankLineSeparationFixer, PhpdocTrimFixer, PhpdocTypesOrderFixer, PhpdocVarAnnotationCorrectOrderFixer, PhpdocVarWithoutNameFixer. Must run after PhpdocTypesFixer.
Return values
intcreateConfigurationDefinition()
    protected
                    createConfigurationDefinition() : FixerConfigurationResolverInterface
    Return values
FixerConfigurationResolverInterfacenormalize()
    protected
                    normalize(string $type) : string
    Parameters
- $type : string