mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
Fix public API BC break
This commit is contained in:
@@ -39,7 +39,7 @@ final class GlobalStructure implements Structure
|
||||
return new self($fields, $flags);
|
||||
}
|
||||
|
||||
public function __construct(array $fields, array $flags)
|
||||
public function __construct(array $fields = [], array $flags = [])
|
||||
{
|
||||
Assertion::allIsInstanceOf($fields, Field::class);
|
||||
Assertion::allIsInstanceOf($flags, Flag::class);
|
||||
@@ -51,7 +51,7 @@ final class GlobalStructure implements Structure
|
||||
}
|
||||
}
|
||||
|
||||
private function add(Field $field)
|
||||
public function add(Field $field)
|
||||
{
|
||||
$name = $field->getName();
|
||||
if (isset($this->fields[$name])) {
|
||||
|
Reference in New Issue
Block a user