neild3r / vscode-php-docblocker

Simple docblocker for php
MIT License
94 stars 31 forks source link

DocBlock not generating for function having associative array as param with more than 1 value #143

Closed umairkhan-dev closed 3 years ago

umairkhan-dev commented 4 years ago

DocBlock not generating for function having associative array as param with more than 1 value. Here is the code

<?php
class test
{

    public function test1(array $options = [])
    {
        # code...
    }

    public function test2(array $options = ['a' => 123])
    {
        # code...
    }

    public function test3(array $options = ['a' => 123, 'b' => 456])
    {
        # code...
    }
}

The DocBlock is generated for first two functions but not for third. PHP DocBlock Issue

Plateform Details: PHP DocBlocker Version: 2.1.0, Visual Studio Code Version: 1.46.1 (system setup) on Windows 10 Pro Version: 2004

umairkhan-dev commented 4 years ago

@neild3r Is this project dead...?

neild3r commented 4 years ago

@umairkhan-dev no I just haven't had any time to work on it as I've been extremely busy

umairkhan-dev commented 3 years ago

As the author of this extension is not active for some time. Also, I have switched to PHP DocBlocker2. I am closing this.