diff --git a/src/CodeStencilHelpers.php b/src/CodeStencilHelpers.php index 7bf867b..2d747da 100644 --- a/src/CodeStencilHelpers.php +++ b/src/CodeStencilHelpers.php @@ -26,7 +26,7 @@ public function multilineComment(string|array $comment): static return $this->foreach($lines, fn(self $s, string $line) => $s->line($line)); } - public function phpdoc(string|array $summary = null, string|array $description = null, array $tags = null): static + public function phpdoc(string|array|null $summary = null, string|array|null $description = null, ?array $tags = null): static { if ($summary === null) { $summary = []; diff --git a/src/Stencil.php b/src/Stencil.php index ecc4da7..91d7db4 100644 --- a/src/Stencil.php +++ b/src/Stencil.php @@ -3,10 +3,11 @@ namespace CodeStencil; use Closure; -use function CodeStencil\Utility\array_flatten; use Illuminate\Support\Traits\Conditionable; use Illuminate\Support\Traits\Macroable; +use function CodeStencil\Utility\array_flatten; + class Stencil { use CodeStencilHelpers;