NativeFunctionTypeDeclarationCasingFixer
extends AbstractFixer
in package
Tags
Table of Contents
- $functionsAnalyzer : FunctionsAnalyzer
- $hints : array<string, true>
- https://secure.php.net/manual/en/functions.arguments.php#functions.arguments.type-declaration.
- __construct() : mixed
- getDefinition() : mixed
- {@inheritdoc}
- isCandidate() : mixed
- {@inheritdoc}
- applyFix() : mixed
- {@inheritdoc}
- fixArgumentType() : mixed
- fixFunctionArgumentTypes() : mixed
- fixFunctionReturnType() : mixed
Properties
$functionsAnalyzer
private
FunctionsAnalyzer
$functionsAnalyzer
$hints
https://secure.php.net/manual/en/functions.arguments.php#functions.arguments.type-declaration.
private
array<string, true>
$hints
self PHP 5.0 array PHP 5.1 callable PHP 5.4 bool PHP 7.0 float PHP 7.0 int PHP 7.0 string PHP 7.0 iterable PHP 7.1 void PHP 7.1 object PHP 7.2 static PHP 8.0 (return type only) mixed PHP 8.0
Methods
__construct()
public
__construct() : mixed
Return values
mixed —getDefinition()
{@inheritdoc}
public
getDefinition() : mixed
Return values
mixed —isCandidate()
{@inheritdoc}
public
isCandidate(Tokens $tokens) : mixed
Parameters
- $tokens : Tokens
Return values
mixed —applyFix()
{@inheritdoc}
protected
applyFix(SplFileInfo $file, Tokens $tokens) : mixed
Parameters
- $file : SplFileInfo
- $tokens : Tokens
Return values
mixed —fixArgumentType()
private
fixArgumentType(Tokens $tokens[, TypeAnalysis $type = null ]) : mixed
Parameters
- $tokens : Tokens
- $type : TypeAnalysis = null
Return values
mixed —fixFunctionArgumentTypes()
private
fixFunctionArgumentTypes(Tokens $tokens, int $index) : mixed
Parameters
- $tokens : Tokens
- $index : int
Return values
mixed —fixFunctionReturnType()
private
fixFunctionReturnType(Tokens $tokens, int $index) : mixed
Parameters
- $tokens : Tokens
- $index : int