Closed
Description
When attempting to the following code:
<?php
require 'vendor/autoload.php';
$file = \Nette\PhpGenerator\PhpFile::fromCode(<<<PHP
<?php
namespace Hello;
class World
{
public function example(/** @noinspection */?string \$example) :? string
{
return 'boo';
}
}
PHP
);
I get an exception saying
Value '/** @noinspection */ ?string' is not valid type.
That is because when parsing the parameter type for $example
, this package doesn't clear the comment before attempting to get the parameter type.
Currently running 3.6.9.
Metadata
Metadata
Assignees
Labels
No labels