Warning: array_intersect_key(): Expected parameter 1 to be an array,…..
-
Hi there,
I am currently receiving the following error:
Warning: array_intersect_key(): Expected parameter 1 to be an array, string given in /path on line 1402.
Thats the line:
if ( isset( $callback[‘args’] ) ) {
$endpoint_data[‘args’] = array();foreach ( $callback[‘args’] as $key => $opts ) {
$arg_data = array_intersect_key( $opts, $allowed_schema_keywords );
$arg_data[‘required’] = ! empty( $opts[‘required’] );$endpoint_data[‘args’][ $key ] = $arg_data;
}
}Does someone know how to fix?
Br and thanks a lot
DavidThe page I need help with: [log in to see the link]
The topic ‘Warning: array_intersect_key(): Expected parameter 1 to be an array,…..’ is closed to new replies.