Skip to content

Commit

Permalink
Fixed getTimeCreated() method signature
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos committed Aug 3, 2021
1 parent 999f907 commit 411d6f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mshoplib/src/MShop/Product/Item/Standard.php
Expand Up @@ -383,9 +383,9 @@ public function setTarget( ?string $value ) : \Aimeos\MShop\Product\Item\Iface
/**
* Returns the create date of the item
*
* @return string ISO date in YYYY-MM-DD hh:mm:ss format
* @return string|null ISO date in YYYY-MM-DD hh:mm:ss format
*/
public function getTimeCreated() : string
public function getTimeCreated() : ?string
{
return $this->get( 'product.ctime', date( 'Y-m-d H:i:s' ) );
}
Expand Down

0 comments on commit 411d6f1

Please sign in to comment.