PHP 8.0 compatibility: Deprecated optional parameter is provided before required in taxonomy_service_select_nodes

Created on 7 February 2023, almost 2 years ago

Optional parameters are not allowed anymore before required parameters.

The tid-parameter in taxonomy_service_select_nodes($tid = '', $pager, $limit, $order) was in fact not optional before as it was not optional in the corresponding service "selectNodes":

'selectNodes' => array(
          'file' => array('type' => 'inc', 'module' => 'services', 'name' => 'resources/taxonomy_resource'),
          'help'   => t('Returns all nodes with provided taxonomy id.'),
          'access arguments' => array('access content'),
          'callback' => 'taxonomy_service_select_nodes',
          'args'     => array(
            array(
              'name'         => 'tid',
              'type'         => 'string',
              'description'  => t('The vocabulary ids to retrieve, separated by comma.'),
              'source'       => array('data' => 'tid'),
              'optional'     => FALSE,
            ),
(...)
          ),
πŸ› Bug report
Status

Closed: duplicate

Version

3.28

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany meyerrob

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024