original_string: protected function _addConditions(array $orders, array $types)
      {
          foreach ($orders as $key => $val) {
              if (is_string($key) && is_string($val) && !in_array(strtoupper($val), ['ASC', 'DESC'], true)) {
                  deprecationWarning(
                      'Passing extra sort expressions by associative array is deprecated. ' .
                      'Use QueryExpression or numeric array instead.'
                  );
              }
          }
          $this->_conditions = array_merge($this->_conditions, $orders);
      }
code: protected function _addConditions(array $orders, array $types)
      {
          foreach ($orders as $key => $val) {
              if (is_string($key) && is_string($val) && !in_array(strtoupper($val), ['ASC', 'DESC'], true)) {
                  deprecationWarning(
                      'Passing extra sort expressions by associative array is deprecated. ' .
                      'Use QueryExpression or numeric array instead.'
                  );
              }
          }
          $this->_conditions = array_merge($this->_conditions, $orders);
      }
code_tokens: protected function _addConditions ( array $ orders , array $ types ) { foreach ( $ orders as $ key => $ val ) { if ( is_string ( $ key ) && is_string ( $ val ) && ! in_array ( strtoupper ( $ val ) , [ 'ASC' , 'DESC' ] , true ) ) { deprecationWarning ( 'Passing extra sort expressions by associative array is deprecated. ' . 'Use QueryExpression or numeric array instead.' ) ; } } $ this -> _conditions = array_merge ( $ this -> _conditions , $ orders ) ; }
docstring: Auxiliary function used for decomposing a nested array of conditions and
  building a tree structure inside this object to represent the full SQL expression.
  
  New order by expressions are merged to existing ones
  
  @param array $orders list of order by expressions
  @param array $types list of types associated on fields referenced in $conditions
  @return void
docstring_tokens: Auxiliary function used for decomposing a nested array of conditions and building a tree structure inside this object to represent the full SQL expression .