ENTITY: Entity::__construct() add type declaration to parameter

This commit is contained in:
Remy Bos
2022-05-19 11:07:06 +02:00
parent acdb153b1c
commit c365008429

View File

@@ -16,7 +16,7 @@ class Entity implements \Stringable
/** /**
* @param Value[] $values * @param Value[] $values
*/ */
public function __construct(private string $name, $values) public function __construct(private string $name, array $values)
{ {
$this->values = new SplObjectStorage(); $this->values = new SplObjectStorage();