Changeset 69

Show
Ignore:
Timestamp:
12/10/06 11:50:23 (2 years ago)
Author:
schst
Message:

Fixed bug #6: Enable factory methods without parameters in PHP 5.0.x

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/XJConf/converters/FactoryMethodValueConverter.php

    r62 r69  
    6363            if (method_exists($refMethod, 'invokeArgs') == true) { 
    6464                    $instance = $refMethod->invokeArgs(null, $cParams); 
     65                } elseif (count($cParams) == 0) { 
     66                    $instance = $refMethod->invoke(null, null); 
    6567                } elseif (count($cParams) == 1) { 
    6668                    $instance = $refMethod->invoke(null, $cParams[0]);