Closed abulhol closed 2 years ago
The API router doesn't work anymore on PHP 8 [1] because call_user_func_array uses the array keys as parameter names [2].
call_user_func_array
The recommended fix is to wrap the parameter array into array_values(). This is what I did here.
array_values()
[1] https://forums.fogproject.org/topic/16370/api-doesn-t-work-in-1-5-9-dev-error-in-route-class-php [2] https://php.watch/versions/8.0/named-parameters#named-params-call_user_func_array
The API router doesn't work anymore on PHP 8 [1] because
call_user_func_array
uses the array keys as parameter names [2].The recommended fix is to wrap the parameter array into
array_values()
. This is what I did here.[1] https://forums.fogproject.org/topic/16370/api-doesn-t-work-in-1-5-9-dev-error-in-route-class-php [2] https://php.watch/versions/8.0/named-parameters#named-params-call_user_func_array