PHP Class alexia\mar\tests\critical

Show file Open project: alexia/php7mar

Public Methods

Method Description
_deprecatedFunctions ( $line ) : boolean Functions deprecated and removed.
_duplicateFunctionParameter ( $line ) : boolean Functions can no longer define parameters with the same name more than once.
_newOperatorWithReference ( $line ) : boolean New objects cannot be assigned by reference
_oldClassConstructors ( $line )
_reservedNames ( $line ) : boolean New class names that are reserved for internal PHP classes.
_variableInterpolation ( $line ) : boolean Find cases of "$$variable" that need curly braces added.
getTests ( ) : array Get all tests for this test type.

Method Details

_deprecatedFunctions() public method

Functions deprecated and removed.
public _deprecatedFunctions ( $line ) : boolean
return boolean Line matches test.

_duplicateFunctionParameter() public method

Functions can no longer define parameters with the same name more than once.
public _duplicateFunctionParameter ( $line ) : boolean
return boolean Line matches test.

_newOperatorWithReference() public method

New objects cannot be assigned by reference
public _newOperatorWithReference ( $line ) : boolean
return boolean Line matches test.

_oldClassConstructors() public method

public _oldClassConstructors ( $line )

_reservedNames() public method

New class names that are reserved for internal PHP classes.
public _reservedNames ( $line ) : boolean
return boolean Line matches test.

_variableInterpolation() public method

Find cases of "$$variable" that need curly braces added.
public _variableInterpolation ( $line ) : boolean
return boolean Line matches test.

getTests() public method

Get all tests for this test type.
public getTests ( ) : array
return array Tests