Method |
Description |
|
findFunction ( Tokens $tokens, string $name, integer $startIndex, integer $endIndex ) : array | null |
Find a function or method matching a given name within certain bounds. |
|
fixConstructor ( Tokens $tokens, string $className, integer $classStart, integer $classEnd ) |
Fix constructor within a class, if possible. |
|
fixInfiniteRecursion ( Tokens $tokens, integer $start, integer $end ) |
Fix a particular infinite recursion issue happening when the parent class has __construct and the child has only
a PHP4 constructor that calls the parent constructor as $this->__construct(). |
|
fixParent ( Tokens $tokens, integer $classStart, integer $classEnd ) |
Fix calls to the parent constructor within a class. |
|
getWrapperMethodSequence ( Tokens $tokens, string $method, integer $startIndex, integer $bodyIndex ) : array |
Generate the sequence of tokens necessary for the body of a wrapper method that simply
calls $this->{$method}( [args. |
|