When unsing PhpFile::fromCode file comment is lost
Steps To Reproduce
<?php
$code = <<<TEST
<?php
/**
* This is file comment. Is will be lost
*/
namespace Test;
/**
* This is class comment. Is will be preserved
*/
class A {
}
TEST;
$file = Nette\PhpGenerator\PhpFile::fromCode($code);
echo $file;
Version: 3.6.5
Bug Description
When unsing
PhpFile::fromCode
file comment is lostSteps To Reproduce
Expected Behavior
First comment is expected to be in output.