mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-04-01 17:45:31 +00:00
fix magnetCommentIdParent data type as mixed
This commit is contained in:
parent
4dcdafc638
commit
da541bf273
2 changed files with 2 additions and 2 deletions
|
|
@ -413,7 +413,7 @@ try
|
||||||
$magnetComments[] = (object)
|
$magnetComments[] = (object)
|
||||||
[
|
[
|
||||||
'magnetCommentId' => (int) $magnetComment->magnetCommentId,
|
'magnetCommentId' => (int) $magnetComment->magnetCommentId,
|
||||||
'magnetCommentIdParent' => (int) $magnetComment->magnetCommentIdParent,
|
'magnetCommentIdParent' => $magnetComment->magnetCommentIdParent,
|
||||||
'userId' => (int) $magnetComment->userId,
|
'userId' => (int) $magnetComment->userId,
|
||||||
'magnetId' => (int) $magnetComment->magnetId,
|
'magnetId' => (int) $magnetComment->magnetId,
|
||||||
'timeAdded' => (int) $magnetComment->timeAdded,
|
'timeAdded' => (int) $magnetComment->timeAdded,
|
||||||
|
|
|
||||||
|
|
@ -995,7 +995,7 @@ class Valid
|
||||||
|
|
||||||
public static function magnetCommentIdParent(mixed $value, array &$error = []) : bool
|
public static function magnetCommentIdParent(mixed $value, array &$error = []) : bool
|
||||||
{
|
{
|
||||||
if (!(is_bool($value) || is_int($value)))
|
if (!(is_null($value) || is_int($value)))
|
||||||
{
|
{
|
||||||
array_push(
|
array_push(
|
||||||
$error,
|
$error,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue