XF / News Invalid return type of UserUpgrade entity

Status
Not open for further replies.

Bots

Registered
Joined
May 3, 2024
Messages
3,593
Reaction score
1
PHP:

Code:
protected function setupApiResultData(EntityResult $result, $verbosity = self::VERBOSITY_NORMAL, array $options = []): void
{
   $result->cost_phrase = $this->cost_phrase;
}

Should not have :void in the end of function.

Continue reading...
 
Status
Not open for further replies.
Top