‪TYPO3CMS  ‪main
TYPO3\CMS\Install\ExtensionScanner\Php\Matcher\MethodArgumentUnusedMatcher Class Reference
Inheritance diagram for TYPO3\CMS\Install\ExtensionScanner\Php\Matcher\MethodArgumentUnusedMatcher:
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

Match method usages where arguments "in between" are unused but not given as "null":

public function foo($arg1, $unused1 = null, $unused2 = null, $arg4) but called with: ->foo('arg1', 'notNull', null, 'arg4');

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

Definition at line 32 of file MethodArgumentUnusedMatcher.php.

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ enterNode()