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

Xon

Well-known member
Affected version
2.1.8
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.
 
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 Bottom