1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-21 21:30:08 +00:00

Assist IDE type inference in MessageAction::create()

This commit is contained in:
Tim Düsterhus 2023-02-22 17:34:09 +01:00
parent ac4178bd36
commit 7837b61eb8
Signed by: TimWolla
GPG Key ID: 8FF75566094168AF

View File

@ -1,12 +1,12 @@
<?php
/*
* Copyright (c) 2010-2022 Tim Düsterhus.
* Copyright (c) 2010-2023 Tim Düsterhus.
*
* Use of this software is governed by the Business Source License
* included in the LICENSE file.
*
* Change Date: 2026-09-17
* Change Date: 2027-02-22
*
* On the date above, in accordance with the Business Source
* License, use of this software will be governed by version 2
@ -43,6 +43,7 @@ class MessageAction extends AbstractDatabaseObjectAction
public function create()
{
$message = parent::create();
\assert($message instanceof Message);
if (isset($this->parameters['updateTimestamp']) && $this->parameters['updateTimestamp']) {
$sql = "UPDATE chat1_room_to_user