Documentation

NativeFunctionInvocationFixer extends AbstractFixer
in package
implements ConfigurationDefinitionFixerInterface

Tags
author

Andreas Möller am@localheinz.com

author

SpacePossum

Interfaces, Classes and Traits

ConfigurationDefinitionFixerInterface

Table of Contents

$functionFilter  : callable
configure()  : mixed
getDefinition()  : mixed
{@inheritdoc}
getPriority()  : mixed
{@inheritdoc}
isCandidate()  : mixed
{@inheritdoc}
isRisky()  : mixed
{@inheritdoc}
applyFix()  : mixed
{@inheritdoc}
createConfigurationDefinition()  : mixed
{@inheritdoc}
fixFunctionCalls()  : mixed
getAllCompilerOptimizedFunctionsNormalized()  : array<string, true>
getAllInternalFunctionsNormalized()  : array<string, true>
getFunctionFilter()  : callable
normalizeFunctionNames()  : array<string, true>

Properties

Methods

configure()

public configure([array<string|int, mixed> $configuration = null ]) : mixed
Parameters
$configuration : array<string|int, mixed> = null
Return values
mixed

getPriority()

{@inheritdoc}

public getPriority() : mixed

Must run before GlobalNamespaceImportFixer. Must run after BacktickToShellExecFixer, StrictParamFixer.

Return values
mixed

fixFunctionCalls()

private fixFunctionCalls(Tokens $tokens, callable $functionFilter, int $start, int $end, bool $tryToRemove) : mixed
Parameters
$tokens : Tokens
$functionFilter : callable
$start : int
$end : int
$tryToRemove : bool
Return values
mixed

getAllCompilerOptimizedFunctionsNormalized()

private getAllCompilerOptimizedFunctionsNormalized() : array<string, true>
Return values
array<string, true>

normalized function names of which the PHP compiler optimizes

getAllInternalFunctionsNormalized()

private getAllInternalFunctionsNormalized() : array<string, true>
Return values
array<string, true>

normalized function names of all internal defined functions

normalizeFunctionNames()

private normalizeFunctionNames(array<string|int, string> $functionNames) : array<string, true>
Parameters
$functionNames : array<string|int, string>
Return values
array<string, true>

all function names lower cased

Search results