Skip to content

Loading…

Undefined Variable $output in Zend\Code\Generator\DocBlock\Tag\LicenseTag #2912

Closed
antonmakarenko opened this Issue · 1 comment

3 participants

@antonmakarenko

https://github.com/zendframework/zf2/blob/develop/library/Zend/Code/Generator/DocBlock/Tag/LicenseTag.php

This code will generate nothing but a runtime error:

    public function generate()
    {
        return $output;
    }
@Maks3w
Zend Framework member

Should be

$output = '@' . $this->name
            . (($this->url != null) ? ' ' . $this->url : '');
            . (($this->description != null) ? ' ' . $this->description : '');
        return $output;

Can you send us a patch with the fix?

@ghost Unknown pushed a commit that referenced this issue
@weierophinney weierophinney Merge branch 'hotfix/3250'
Close #3250
Fix #2912
47db7c0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.