Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/collection-support' into collect…
Browse files Browse the repository at this point in the history
…ion-support
  • Loading branch information
arogachev committed Aug 2, 2024
2 parents 8f7162c + 27ae888 commit 0b24aac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/Attribute/Parameter/CollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,14 @@ public static function dataBase(): array
new Collection(Post::class),
[
['name' => 'Post 1'],
new class () implements DataInterface
{
new class () implements DataInterface {
public function getValue(string $name): Result
{
$value = $name === 'name' ? 'Post 2' : 'Description for post 2';

return Result::success($value);
}
}
},
],
[
new Post(name: 'Post 1'),
Expand Down

0 comments on commit 0b24aac

Please sign in to comment.