Skip to content

Commit 197b02c

Browse files
committed
withData is void
1 parent f828474 commit 197b02c

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/LiveComponent/src/Test/InteractsWithLiveComponents.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ protected function createLiveComponent(string $name, array $data = [], ?KernelBr
4646
}
4747

4848
/**
49-
* @return object{withData: callable(array): object, withDataSubset: callable(array): object}
49+
* @return object{withData: callable(array): void, withDataSubset: callable(array): object}
5050
*/
5151
protected function assertComponentEmitEvent(TestLiveComponent $testLiveComponent, string $expectedEventName): object
5252
{
@@ -85,14 +85,9 @@ public function withDataSubset(array $expectedEventData): object
8585
return $this;
8686
}
8787

88-
/**
89-
* @return self
90-
*/
91-
public function withData(array $expectedEventData): object
88+
public function withData(array $expectedEventData): void
9289
{
9390
$this->parent->assertEquals($expectedEventData, $this->data, \sprintf('The expected event "%s" data does not match.', $this->eventName));
94-
95-
return $this;
9691
}
9792
};
9893
}

0 commit comments

Comments
 (0)