File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public function __construct(private string $name)
15
15
$ this ->values = new SplObjectStorage ();
16
16
}
17
17
18
- public function addValue (Value $ value )
18
+ public function addValue (Value $ value ): void
19
19
{
20
20
$ this ->values ->attach ($ value );
21
21
}
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class Entity implements \Stringable
16
16
/**
17
17
* @param Value[] $values
18
18
*/
19
- public function __construct (private string $ name , $ values )
19
+ public function __construct (private string $ name , array $ values )
20
20
{
21
21
$ this ->values = new SplObjectStorage ();
22
22
Original file line number Diff line number Diff line change 11
11
12
12
class EAVTest extends TestCase
13
13
{
14
- public function testCanAddAttributeToEntity ()
14
+ public function testCanAddAttributeToEntity (): void
15
15
{
16
16
$ colorAttribute = new Attribute ('color ' );
17
17
$ colorSilver = new Value ($ colorAttribute , 'silver ' );
You can’t perform that action at this time.
0 commit comments