We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aec7354 commit b6664ddCopy full SHA for b6664dd
tests/Unit/Column/Type/CollectionColumnTypeTest.php
@@ -99,8 +99,11 @@ public function testWithNonScalarValues(array $collection): void
99
{
100
$column = $this->createColumn();
101
102
- $data = new class ($collection) {
103
- public function __construct(public array $collection) {}
+ $data = new class($collection) {
+ public function __construct(
104
+ public array $collection,
105
+ ) {
106
+ }
107
};
108
109
$valueRowView = $this->createValueRowView(data: $data);
@@ -116,6 +119,6 @@ public static function provideNonScalarValuesCases(): iterable
116
119
117
120
yield 'Enums' => [[UnitEnum::Foo, TranslatableEnum::Bar]];
118
121
- yield 'stdClass' => [[new \stdClass, (object) ['foo' => 'bar']]];
122
+ yield 'stdClass' => [[new \stdClass(), (object) ['foo' => 'bar']]];
123
}
124
0 commit comments