Fixed Incorrect type hint on XF::service's $arguments arg

Affected version
2.1.8

Xon

Well-known member
PHP:
/**
* @Param $class
* @Param array ...$arguments
*
* @return mixed
*/
public function service($class, ...$arguments)
This should be mixed ...$arguments, as otherwise this is saying it expects an array of arrays. not an array of mixed items.
 

XF Bug Bot

XenForo bug fixer bot
Staff member
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.1.10).

Change log:
Fix incorrect type hint on App::service method.
There may be a delay before changes are rolled out to the XenForo Community.
 
Top