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:
parent
ac4178bd36
commit
7837b61eb8
@ -1,12 +1,12 @@
|
|||||||
<?php
|
<?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
|
* Use of this software is governed by the Business Source License
|
||||||
* included in the LICENSE file.
|
* 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
|
* On the date above, in accordance with the Business Source
|
||||||
* License, use of this software will be governed by version 2
|
* License, use of this software will be governed by version 2
|
||||||
@ -43,6 +43,7 @@ class MessageAction extends AbstractDatabaseObjectAction
|
|||||||
public function create()
|
public function create()
|
||||||
{
|
{
|
||||||
$message = parent::create();
|
$message = parent::create();
|
||||||
|
\assert($message instanceof Message);
|
||||||
|
|
||||||
if (isset($this->parameters['updateTimestamp']) && $this->parameters['updateTimestamp']) {
|
if (isset($this->parameters['updateTimestamp']) && $this->parameters['updateTimestamp']) {
|
||||||
$sql = "UPDATE chat1_room_to_user
|
$sql = "UPDATE chat1_room_to_user
|
||||||
|
Loading…
Reference in New Issue
Block a user