1
0
mirror of https://github.com/flarum/core.git synced 2025-10-19 02:36:08 +02:00

fixed the created_at issue from the policy caused by the setStartPost setting created_at to null

This commit is contained in:
Daniel Klabbers
2018-05-14 11:52:01 +02:00
parent fd859e33be
commit 81cb67e87c
2 changed files with 15 additions and 6 deletions

View File

@@ -30,10 +30,18 @@ class StartDiscussion
public $data;
/**
* @param User $actor The user authoring the discussion.
* @param array $data The discussion attributes.
* The current ip address of the actor.
*
* @var string
*/
public function __construct(User $actor, array $data, $ipAddress)
public $ipAddress;
/**
* @param User $actor The user authoring the discussion.
* @param array $data The discussion attributes.
* @param string $ipAddress The current ip address of the actor.
*/
public function __construct(User $actor, array $data, string $ipAddress)
{
$this->actor = $actor;
$this->data = $data;