Skip to content

Comments

Fix issues #317 #316 #309#348

Open
dmitrach wants to merge 3 commits intonikhilkalige:developfrom
dmitrach:patch-2
Open

Fix issues #317 #316 #309#348
dmitrach wants to merge 3 commits intonikhilkalige:developfrom
dmitrach:patch-2

Conversation

@dmitrach
Copy link

Now the result is this:
/**
* [test description]
* @param [type] $argument [description]
* @param type $argument2 [description]
* @param ArfFof $arg3 [description]
* @param string $arg4 [description]
* @param array $Arg5 [description]
* @param [type] $arg6 [description]
* @param string $arg7 [description]
* @param int $arg8 [description]
* @param array $arg9 [description]
* @param ArgArray $arg10 [description]
* @param [type] ...$arg11 [description]
* @return [type] [description]
*/
public function test($argument, type $argument2, Arf\Fof $arg3, $arg4 = 'value', $Arg5 = [], $arg6 = null, $arg7 = '', $arg8 = 8, Arg\Array $arg9 = [], Arg\Array $arg10, ...$arg11)

Now the result is this:
/**
     * [test description]
     * @param  [type]   $argument  [description]
     * @param  type     $argument2 [description]
     * @param  ArfFof   $arg3      [description]
     * @param  string   $arg4      [description]
     * @param  array    $Arg5      [description]
     * @param  [type]   $arg6      [description]
     * @param  string   $arg7      [description]
     * @param  int      $arg8      [description]
     * @param  array    $arg9      [description]
     * @param  ArgArray $arg10     [description]
     * @param  [type]   ...$arg11  [description]
     * @return [type]              [description]
     */
    public function test($argument, type $argument2, Arf\Fof $arg3, $arg4 = 'value', $Arg5 = [], $arg6 = null, $arg7 = '', $arg8 = 8, Arg\Array $arg9 = [], Arg\Array $arg10, ...$arg11)
Examples:
/**
      * [testWithType description]
      * @return [type] [description]
      */
     public function testWithType()
     {
       
     }

/**
     * [testReturnArray description]
     * @return array [description]
     */
    public function testReturnArray() :array {

    }

/**
     * [testReturnArrayOrNull description]
     * @return array|null [description]
     */
    public function testReturnArrayOrNull() :?array {

    }

/**
     * [testReturnErrorType description]
     * @return [type] [description]
     */
    public function testReturnErrorType() :??array {

    }
The last pull request fixed (nikhilkalige#348). 
Issue nikhilkalige#309 fixed. The modifiers don't depend from their sequence.
@dmitrach dmitrach changed the title Fix issue #317: PHP arguments with '...' Fix issues #317 #316 #309 Jan 15, 2020
@MoritzKn
Copy link
Collaborator

Sorry, I've never got around to reviewing this. Keep in mind this package is pretty much unmaintained but I am still willing to merge clean PRs and publish new releases. This PR seems to be that. Also fixing a lot of old bugs would be great.

If anyone is willing to make sure this still works, I'd love to merge this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants