mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-30 03:30:14 +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
|
||||
*/
|
||||
public function __construct(private string $name, $values)
|
||||
public function __construct(private string $name, array $values)
|
||||
{
|
||||
$this->values = new SplObjectStorage();
|
||||
|
||||
|
Reference in New Issue
Block a user