You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace in Topic.php User::updateMemberData($rowMembers['id_member'], ['posts' => 'posts - ' . $rowMembers['posts']]); with User::updateMemberData((int) $rowMembers['id_member'], ['posts' => 'posts - ' . $rowMembers['posts']]);, or replace in User.php public static function updateMemberData(int|array|null $members, array $data): void with public static function updateMemberData(mixed $members, array $data): void
Also, replace in Msg.php Msg::updateLastMessages($row['id_board']); with Msg::updateLastMessages((int) $row['id_board']); or with Msg::updateLastMessages([$row['id_board']]);
The text was updated successfully, but these errors were encountered:
Basic Information
Type errors occur when deleting topics and posts.
Steps to reproduce
Expected result
No response
Actual result
No response
Version/Git revision
3.0 Alpha 1
Database Engine
MySQL
Database Version
MariaDB-10.6.11
PHP Version
8.0.30
Logs
No response
Additional Information
Replace in Topic.php
User::updateMemberData($rowMembers['id_member'], ['posts' => 'posts - ' . $rowMembers['posts']]);
withUser::updateMemberData((int) $rowMembers['id_member'], ['posts' => 'posts - ' . $rowMembers['posts']]);
, or replace in User.phppublic static function updateMemberData(int|array|null $members, array $data): void
withpublic static function updateMemberData(mixed $members, array $data): void
Also, replace in Msg.php
Msg::updateLastMessages($row['id_board']);
withMsg::updateLastMessages((int) $row['id_board']);
or withMsg::updateLastMessages([$row['id_board']]);
The text was updated successfully, but these errors were encountered: