mirror of
https://github.com/Karaka-Management/oms-ItemManagement.git
synced 2026-01-31 12:48:41 +00:00
fix install
This commit is contained in:
parent
7954306cc3
commit
2c7b8ff9a5
|
|
@ -59,7 +59,7 @@ final class Installer extends InstallerAbstract
|
|||
{
|
||||
$itemAttrType = [];
|
||||
|
||||
$itemAttrType['color'] = new ItemAttributeType('color');
|
||||
$itemAttrType['color'] = new ItemAttributeType('color'); // @todo: I think 'color' in this case is a ItemAttributeTypeL11n, this is wrong?!
|
||||
ItemAttributeTypeMapper::create($itemAttrType['color']);
|
||||
ItemAttributeTypeL11nMapper::create(new ItemAttributeTypeL11n($itemAttrType['color']->getId(), 'Color', ISO639x1Enum::_EN));
|
||||
ItemAttributeTypeL11nMapper::create(new ItemAttributeTypeL11n($itemAttrType['color']->getId(), 'Farbe', ISO639x1Enum::_DE));
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ class ItemAttributeTypeL11n implements \JsonSerializable, ArrayableInterface
|
|||
* @var int|ItemL11nType
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected $type = 0;
|
||||
protected int|ItemL11nType $type = 0;
|
||||
|
||||
/**
|
||||
* Language.
|
||||
|
|
@ -68,7 +68,7 @@ class ItemAttributeTypeL11n implements \JsonSerializable, ArrayableInterface
|
|||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function __construct($type = 0, string $title = '', string $language = ISO639x1Enum::_EN)
|
||||
public function __construct(int|ItemL11nType $type = 0, string $title = '', string $language = ISO639x1Enum::_EN)
|
||||
{
|
||||
$this->type = $type;
|
||||
$this->title = $title;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user