Skip to content

Commit 44e6fd2

Browse files
committed
wip
1 parent 425cc4d commit 44e6fd2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Tempest/Framework/Commands/MetaViewComponentCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ private function resolveVariables(AnonymousViewComponent $viewComponent): Immuta
105105
->matchAll('/^\s*\*\s*@var.*$/m')
106106
->map(fn (array $matches) => str($matches[0]))
107107
->map(fn (ImmutableString $line) => $line->replaceRegex('/^\s*\*\s*@var\s*/', ''))
108+
->map(fn (ImmutableString $line) => $line->trim())
108109
->map(fn (ImmutableString $line) => $line->explode(limit: 3))
109110
->mapWithKeys(
110111
fn (ImmutableArray $parts) => yield $parts[1] => [

tests/Integration/Framework/Commands/ViewViewComponentCommandTest.php renamed to tests/Integration/Framework/Commands/MetaViewComponentCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Tests\Tempest\Integration\FrameworkIntegrationTestCase;
66

7-
final class ViewViewComponentCommandTest extends FrameworkIntegrationTestCase
7+
final class MetaViewComponentCommandTest extends FrameworkIntegrationTestCase
88
{
99
public function test_show_meta_for_all_components(): void
1010
{

0 commit comments

Comments
 (0)