X Xon Well-known member Apr 20, 2020 #1 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.
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 May 14, 2020 #2 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. Click to expand... There may be a delay before changes are rolled out to the XenForo Community.
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. Click to expand... There may be a delay before changes are rolled out to the XenForo Community.