ReflectionClassNewInstancePatch
    
            
            in package
            
        
    
            
            implements
                            ClassPatchInterface                    
    
    
        
            ReflectionClass::newInstance patch.
Makes first argument of newInstance optional, since it works but signature is misleading
Tags
Interfaces, Classes, Traits and Enums
- ClassPatchInterface
- Class patch interface.
Table of Contents
- apply() : void
- Updates newInstance's first argument to make it optional
- getPriority() : int
- Returns patch priority, which determines when patch will be applied.
- supports() : bool
- Supports ReflectionClass
Methods
apply()
Updates newInstance's first argument to make it optional
    public
                    apply(ClassNode $node) : void
    
        Parameters
- $node : ClassNode
Return values
void —getPriority()
Returns patch priority, which determines when patch will be applied.
    public
                    getPriority() : int
    
    
    
        Return values
int —Priority number (higher = earlier)
supports()
Supports ReflectionClass
    public
                    supports(ClassNode $node) : bool
    
        Parameters
- $node : ClassNode