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

Closed
antonmakarenko opened this Issue Nov 7, 2012 · 1 comment

Comments

Projects
None yet
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

This comment has been minimized.

Show comment
Hide comment
@Maks3w

Maks3w Nov 16, 2012

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?

Member

Maks3w commented Nov 16, 2012

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?

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