@trigger_error("Passing the \$mode argument as an integer to setFetchMode() is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. Use a case of \Drupal\Core\Database\Statement\FetchAs enum instead. See https://www.drupal.org/node/3488338",E_USER_DEPRECATED);
$mode=$this->pdoToFetchAs($mode);
}
assert($modeinstanceofFetchAs);
$this->fetchMode=$mode;
switch($mode){
caseFetchAs::ClassObject:
@@ -245,12 +244,18 @@ public function setFetchMode($mode, $a1 = NULL, $a2 = []) {
@trigger_error("Passing the \$mode argument as an integer to fetch() is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. Use a case of \Drupal\Core\Database\Statement\FetchAs enum instead. See https://www.drupal.org/node/3488338",E_USER_DEPRECATED);
$mode=$this->pdoToFetchAs($mode);
}
assert($mode===NULL||$modeinstanceofFetchAs);
if($cursorOrientation!==NULL){
@trigger_error("Passing the \$cursorOrientation value to ".__METHOD__."() is deprecated in drupal:11.4.0 and will be removed in drupal:12.0.0. There is no replacement. See https://www.drupal.org/node/3551924",E_USER_DEPRECATED);
}
if($cursorOffset!==NULL){
@trigger_error("Passing the \$cursorOffset value to ".__METHOD__."() is deprecated in drupal:11.4.0 and will be removed in drupal:12.0.0. There is no replacement. See https://www.drupal.org/node/3551924",E_USER_DEPRECATED);
}
$fetchOptions=match(func_num_args()){
0=>$this->fetchOptions,
@@ -305,7 +310,7 @@ public function fetchAssoc() {
@trigger_error("Passing the \$mode argument as an integer to fetchAll() is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. Use a case of \Drupal\Core\Database\Statement\FetchAs enum instead. See https://www.drupal.org/node/3488338",E_USER_DEPRECATED);
$mode=$this->pdoToFetchAs($mode);
}
assert($mode===NULL||$modeinstanceofFetchAs);
$fetchMode=$mode??$this->fetchMode;
if(isset($columnIndex)){
$this->fetchOptions['column']=$columnIndex;
@@ -346,20 +350,19 @@ public function fetchAll($mode = NULL, $columnIndex = NULL, $constructorArgument
@trigger_error("Passing the \$fetch argument as an integer to fetchAllAssoc() is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. Use a case of \Drupal\Core\Database\Statement\FetchAs enum instead. See https://www.drupal.org/node/3488338",E_USER_DEPRECATED);