More phpstan checks for better code

This commit is contained in:
Jaapio
2026-01-01 22:36:45 +01:00
parent f08359470f
commit 3f6d648d7d
26 changed files with 154 additions and 92 deletions
+2 -3
View File
@@ -7,11 +7,10 @@ namespace phpDocumentor\Reflection\Assets;
use phpDocumentor\Reflection\DocBlock\Tag;
use phpDocumentor\Reflection\DocBlock\Tags\Formatter;
use phpDocumentor\Reflection\DocBlock\Tags\Formatter\PassthroughFormatter;
use phpDocumentor\Reflection\FqsenResolver;
use phpDocumentor\Reflection\DocBlock\Tags\Factory\StaticMethod;
final class CustomServiceClass implements Tag
{
/** @var Formatter|null */
public $formatter;
public function getName() : string
@@ -19,7 +18,7 @@ final class CustomServiceClass implements Tag
return 'spy';
}
public static function create($body, PassthroughFormatter $formatter = null)
public static function create(string $body, PassthroughFormatter $formatter = null)
{
$tag = new self();
$tag->formatter = $formatter;