RandomApiMigrationFixer
extends AbstractFunctionReferenceFixer
in package
implements
ConfigurableFixerInterface
uses
ConfigurableFixerTrait
FinalYes
Tags
Table of Contents
Interfaces
Properties
- $argumentCounts : array<string, array<int, int>>
Methods
- getDefinition() : FixerDefinitionInterface
- Returns the definition of the fixer.
- applyFix() : void
- createConfigurationDefinition() : FixerConfigurationResolverInterface
Properties
$argumentCounts
private
static array<string, array<int, int>>
$argumentCounts
= ['getrandmax' => [0], 'mt_rand' => [1, 2], 'rand' => [0, 2], 'srand' => [0, 1], 'random_int' => [0, 2]]
Methods
getDefinition()
Returns the definition of the fixer.
public
getDefinition() : FixerDefinitionInterface
Return values
FixerDefinitionInterfaceapplyFix()
protected
applyFix(SplFileInfo $file, Tokens $tokens) : void
Parameters
- $file : SplFileInfo
- $tokens : Tokens
createConfigurationDefinition()
protected
createConfigurationDefinition() : FixerConfigurationResolverInterface