only in patch2: unchanged: --- a/core/lib/Drupal/Core/Database/StatementPrefetch.php +++ b/core/lib/Drupal/Core/Database/StatementPrefetch.php @@ -418,7 +418,7 @@ public function fetchField($index = 0) { /** * {@inheritdoc} */ - public function fetchObject($class_name = NULL, $constructor_args = []) { + public function fetchObject($class_name = NULL, $constructor_arguments = NULL) { if (isset($this->currentRow)) { if (!isset($class_name)) { // Directly cast to an object to avoid a function call. @@ -428,7 +428,7 @@ public function fetchObject($class_name = NULL, $constructor_args = []) { $this->fetchStyle = \PDO::FETCH_CLASS; $this->fetchOptions = [ 'class' => $class_name, - 'constructor_args' => $constructor_args, + 'constructor_args' => $constructor_arguments, ]; // Grab the row in the format specified above. $result = $this->current();