‪TYPO3CMS  ‪main
TYPO3\CMS\Install\ExtensionScanner\Php\Matcher\MethodCallStaticMatcher Class Reference
Inheritance diagram for TYPO3\CMS\Install\ExtensionScanner\Php\Matcher\MethodCallStaticMatcher:
TYPO3\CMS\Install\ExtensionScanner\Php\Matcher\AbstractCoreMatcher TYPO3\CMS\Install\ExtensionScanner\CodeScannerInterface

Public Member Functions

 __construct (array $matcherDefinitions)
 enterNode (Node $node)
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Install\ExtensionScanner\Php\Matcher\AbstractCoreMatcher
 getMatches ()

Additional Inherited Members

- ‪Public Attributes inherited from ‪TYPO3\CMS\Install\ExtensionScanner\Php\Matcher\AbstractCoreMatcher
const NODE_RESOLVED_AS = 'nodeResolvedAs'
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Install\ExtensionScanner\Php\Matcher\AbstractCoreMatcher
 validateMatcherDefinitions (array $requiredArrayKeys=[])
 validateMatcherDefinitionKeys (string $key, array $matcherDefinition, array $requiredArrayKeys=[])
 initializeFlatMatcherDefinitions ()
 isArgumentUnpackingUsed (array $arguments=[])
 isLineIgnored (Node $node)
 isFileIgnored (Node $node)
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Install\ExtensionScanner\Php\Matcher\AbstractCoreMatcher
array $matcherDefinitions = array( )
array $matches = array( )
array $flatMatcherDefinitions = array( )
int $currentCodeLine = 0
bool $isCurrentLineIgnored = false
bool $isFullFileIgnored = false

Detailed Description

Find usages of static method calls which were removed / deprecated.

This match is performed either is case of a direct "foo\bar::aMethod()" call as "strong" match, or as only "::aMethod()" as "weak" match.

As additional indicator, the number of required, mandatory arguments is recognized: If calling a static method as "$foo::aMethod($arg1), but the method needs two arguments, this is not considered a match. This would have raised a fatal PHP error anyway and this is nothing we test here.

This class is only meant to be used within EXT:install and is not part of the TYPO3 Core API.

Definition at line 37 of file MethodCallStaticMatcher.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Install\ExtensionScanner\Php\Matcher\MethodCallStaticMatcher::__construct ( array  $matcherDefinitions)

Member Function Documentation

◆ enterNode()

TYPO3\CMS\Install\ExtensionScanner\Php\Matcher\MethodCallStaticMatcher::enterNode ( Node  $node)