phpstan, phpcs, phpunit fixes

This commit is contained in:
Dennis Eichhorn 2023-01-27 22:12:09 +01:00
parent 87ce46638c
commit 6e8b986b0c
3 changed files with 7 additions and 5 deletions

View File

@ -57,6 +57,8 @@ final class Installer extends InstallerAbstract
private static function installDefaultColors() : void
{
$setting = new Setting();
SettingMapper::create()->execute($setting->with(0, '1007500001', '#ff000000;#ff00ff00;#ffffffff', '(#[a-fA-F0-9]{8};)*(#[a-fA-F0-9]{8})', null, 'Tag'));
SettingMapper::create()->execute(
$setting->with(0, '1007500001', '#ff000000;#ff00ff00;#ffffffff', '(#[a-fA-F0-9]{8};)*(#[a-fA-F0-9]{8})', module: 'Tag')
);
}
}

View File

@ -59,7 +59,7 @@ final class TagL11nMapper extends DataMapperFactory
/**
* Model to use by the mapper.
*
* @var string
* @var class-string
* @since 1.0.0
*/
public const MODEL = BaseStringL11n::class;

View File

@ -43,7 +43,7 @@ final class TagMapper extends DataMapperFactory
/**
* Has many relation.
*
* @var array<string, array{mapper:string, table:string, self?:?string, external?:?string, column?:string}>
* @var array<string, array{mapper:class-string, table:string, self?:?string, external?:?string, column?:string}>
* @since 1.0.0
*/
public const HAS_MANY = [
@ -59,7 +59,7 @@ final class TagMapper extends DataMapperFactory
/**
* Belongs to.
*
* @var array<string, array{mapper:string, self:string}>
* @var array<string, array{mapper:class-string, self:string}>
* @since 1.0.0
*/
/*
@ -74,7 +74,7 @@ final class TagMapper extends DataMapperFactory
/**
* Model to use by the mapper.
*
* @var string
* @var class-string
* @since 1.0.0
*/
public const MODEL = Tag::class;