mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 10:07:12 +00:00
initialize variables before include, so that var tag usage is normal
This commit is contained in:
@@ -31,10 +31,11 @@ class ReconstitutingADocBlockTest extends TestCase
|
||||
|
||||
public function testReconstituteADocBlock(): void
|
||||
{
|
||||
/**
|
||||
* @var string $docComment
|
||||
* @var string $reconstitutedDocComment
|
||||
*/
|
||||
/** @var string $docComment */
|
||||
$docComment;
|
||||
/** @var string $reconstitutedDocComment */
|
||||
$reconstitutedDocComment;
|
||||
|
||||
include(__DIR__ . '/../../examples/03-reconstituting-a-docblock.php');
|
||||
|
||||
$this->assertSame($docComment, $reconstitutedDocComment);
|
||||
|
||||
Reference in New Issue
Block a user