initialize variables before include, so that var tag usage is normal

This commit is contained in:
Chuck Burgess
2018-01-29 14:03:51 -06:00
parent ffc8cc1f9c
commit d9952bd114
3 changed files with 39 additions and 27 deletions
@@ -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);