Version 4.7.8

This commit is contained in:
Neo committed 2025-12-19 16:10:42 -08:00
1 parent 7b7404e741
commit fd22d99e69
688 files changed
+19814 -10890

No files matched your search

@@ -33,7 +33,7 @@ class _Forum
/*
* Query arguments
*/
public function args()
public function args(): array
{
return array(
'id' => TypeRegistry::nonNull( TypeRegistry::id() ),
@@ -33,7 +33,7 @@ class _Forums
/*
* Query arguments
*/
public function args()
public function args(): array
{
return array(
'id' => TypeRegistry::id()
@@ -33,7 +33,7 @@ class _Post
/*
* Query arguments
*/
public function args()
public function args(): array
{
return array(
'id' => TypeRegistry::nonNull( TypeRegistry::id() )
@@ -33,7 +33,7 @@ class _Topic
/*
* Query arguments
*/
public function args()
public function args(): array
{
return array(
'id' => TypeRegistry::nonNull( TypeRegistry::id() )
@@ -64,12 +64,12 @@ class _Topic
}
catch ( \OutOfRangeException $e )
{
throw new \IPS\Api\GraphQL\SafeException( 'NO_TOPIC', '1F294/2', 400 );
throw new \IPS\Api\GraphQL\SafeException( 'NO_TOPIC', '1F294/2_graphql', 400 );
}
if( !$topic->can('read') )
{
throw new \IPS\Api\GraphQL\SafeException( 'INVALID_ID', '2F294/9', 403 );
throw new \IPS\Api\GraphQL\SafeException( 'INVALID_ID', '2F294/9_graphql', 403 );
}
return $topic;
@@ -33,7 +33,7 @@ class _Topics
/*
* Query arguments
*/
public function args()
public function args(): array
{
return array(
'forums' => TypeRegistry::listOf( TypeRegistry::int() ),
@@ -82,7 +82,7 @@ class _Topics
* @param mixed Value passed into this resolver
* @param array Arguments
* @param array Context values
* @return \IPS\forums\Topic\Post
* @return \IPS\forums\Topic
*/
public function resolve($val, $args, $context, $info)
{