mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-01 12:40:11 +02:00
ENTITY: Entity::__construct() add type declaration to parameter
This commit is contained in:
@@ -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();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user