Skip to content

Commit

Permalink
bot: fix cs [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
kbond committed Jan 1, 2025
1 parent f3007a1 commit 5a93ba5
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions tests/Unit/LazyValueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,16 @@ public function can_handle_nested_lazy_values(): void
*/
public function can_handle_array_with_lazy_values(): void
{
$value = LazyValue::new(function() {
return [
5,
LazyValue::new(fn() => 'foo'),
6,
'foo' => [
'bar' => 7,
'baz' => LazyValue::new(fn() => 'foo'),
],
[8, LazyValue::new(fn() => 'foo')],
];
});
$value = LazyValue::new(fn() => [
5,
LazyValue::new(fn() => 'foo'),
6,
'foo' => [
'bar' => 7,
'baz' => LazyValue::new(fn() => 'foo'),
],
[8, LazyValue::new(fn() => 'foo')],
]);

$this->assertSame([5, 'foo', 6, 'foo' => ['bar' => 7, 'baz' => 'foo'], [8, 'foo']], $value());
}
Expand Down

0 comments on commit 5a93ba5

Please sign in to comment.