Changeset 736 in svn for trunk/decompilesample.php


Ignore:
Timestamp:
2011-04-10T16:38:36+02:00 (4 years ago)
Author:
Xuefer
Message:

decompiler: fix argument default value

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/decompilesample.php

    r734 r736  
    33class ClassName
    44{
     5    /** doc */
    56    static public $static = array(
    67        array('array'),
    78        'str'
    89        );
     10    /** doc */
    911    static public $public_static = array(2, 'str');
     12    /** doc */
    1013    static private $private_static = array(2, 'str');
     14    /** doc */
    1115    static protected $protected_static = array(2, 'str');
     16    /** doc */
    1217    public $property = array(
    1318        array('array'),
    1419        'str'
    1520        );
     21    /** doc */
    1622    public $public_property = array(2, 'str');
     23    /** doc */
    1724    private $private_property = array(2, 'str');
     25    /** doc */
    1826    protected $protected_property = array(2, 'str');
    1927
     28    /** doc */
    2029    public function __construct($a, $b)
    2130    {
    2231    }
    2332
    24     function method(ClassName $a = null, $b = null)
     33    /** doc */
     34    public function method(array $a = NULL, $b = NULL)
    2535    {
    2636    }
    2737
    28     public function publicMethod(ClassName $a = null, $b = 2)
     38    /** doc */
     39    public function publicMethod(ClassName $a = NULL, $b = 2)
    2940    {
    3041    }
    3142
    32     protected function protectedMethod(ClassName $a, $b = array(array("array")))
     43    /** doc */
     44    protected function protectedMethod(ClassName $a, $b = array(
     45        array('array')
     46        ))
    3347    {
    3448        return 'protected';
    3549    }
    3650
    37     private function privateMethod(ClassName $a, $b = null)
     51    /** doc */
     52    private function privateMethod(ClassName $a, $b = NULL)
    3853    {
    3954        return 'private';
Note: See TracChangeset for help on using the changeset viewer.