Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP return nullable type #316

Open
TerraTech opened this issue May 22, 2018 · 0 comments
Open

PHP return nullable type #316

TerraTech opened this issue May 22, 2018 · 0 comments

Comments

@TerraTech
Copy link

Please add support for PHP 7.1's new nullable type return feature.

reference: http://php.net/manual/en/migration71.new-features.php

public function QuickRow(string $query): ?array { ... }

TIA!

dmitrach added a commit to dmitrach/docblockr that referenced this issue Jan 15, 2020
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 {

    }
dmitrach added a commit to dmitrach/docblockr that referenced this issue Jan 15, 2020
The last pull request fixed (nikhilkalige#348). 
Issue nikhilkalige#309 fixed. The modifiers don't depend from their sequence.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants