mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 01:57:13 +00:00
More phpstan checks for better code
This commit is contained in:
@@ -10,7 +10,10 @@ use phpDocumentor\Reflection\FqsenResolver;
|
||||
|
||||
final class CustomParam implements Tag
|
||||
{
|
||||
/** @var string|null */
|
||||
public $myParam;
|
||||
|
||||
/** @var FqsenResolver|null */
|
||||
public $fqsenResolver;
|
||||
|
||||
public function getName() : string
|
||||
@@ -18,7 +21,7 @@ final class CustomParam implements Tag
|
||||
return 'spy';
|
||||
}
|
||||
|
||||
public static function create($body, FqsenResolver $fqsenResolver = null, ?string $myParam = null)
|
||||
public static function create(string $body, FqsenResolver $fqsenResolver = null, ?string $myParam = null)
|
||||
{
|
||||
$tag = new self();
|
||||
$tag->fqsenResolver = $fqsenResolver;
|
||||
|
||||
Reference in New Issue
Block a user