cs and phpstan fixes

This commit is contained in:
Dennis Eichhorn 2020-10-24 17:52:23 +02:00
parent 3b7f61ffd9
commit 78a97364cc
3 changed files with 5 additions and 5 deletions

View File

@ -43,10 +43,10 @@ class BatchPosting implements \Countable
/**
* Created.
*
* @var \DateTime
* @var \DateTimeImmutable
* @since 1.0.0
*/
private \DateTime $created;
private \DateTimeImmutable $created;
/**
* Description.
@ -71,7 +71,7 @@ class BatchPosting implements \Countable
*/
public function __construct()
{
$this->created = new \DateTime('now');
$this->created = new \DateTimeImmutable('now');
}
/**

View File

@ -46,7 +46,7 @@ final class L11nCostCenterMapper extends DataMapperAbstract
/**
* Has one relation.
*
* @var array<string, array{mapper:string, self:string, by?:string, column?:string}>
* @var array<string, array{mapper:string, external:string, by?:string, column?:string, conditional?:bool}>
* @since 1.0.0
*/
protected static array $ownsOne = [

View File

@ -46,7 +46,7 @@ final class L11nCostObjectMapper extends DataMapperAbstract
/**
* Has one relation.
*
* @var array<string, array{mapper:string, self:string, by?:string, column?:string}>
* @var array<string, array{mapper:string, external:string, by?:string, column?:string, conditional?:bool}>
* @since 1.0.0
*/
protected static array $ownsOne = [