Merge pull request #77 from Soullivaneuh/example-to-string

Fix missing Example::__toString method
This commit is contained in:
Mike van Riel
2016-06-10 09:04:47 +02:00
committed by GitHub
+10
View File
@@ -134,6 +134,16 @@ final class Example extends BaseTag
return $this; return $this;
} }
/**
* Returns a string representation for this tag.
*
* @return string
*/
public function __toString()
{
return $this->filePath . ($this->description ? ' ' . $this->description->render() : '');
}
/** /**
* Returns true if the provided URI is relative or contains a complete scheme (and thus is absolute). * Returns true if the provided URI is relative or contains a complete scheme (and thus is absolute).
* *