Drupal\Core\Database\Query\Query::__toString() must return a string value

Created on 23 June 2017, over 7 years ago
Updated 7 March 2023, over 1 year ago

Problem/Motivation

Catchable fatal error: Method Drupal\Core\Database\Driver\mysql\Merge::__toString() must return a string value

That's caused by \Drupal\Core\Database\Query\Merge::__toString() that returns nothing

Steps to reproduce

Run phpstan without the baseline

Proposed resolution

Return an empty string instead of nothing

Remaining tasks

Address feedback in #29

User interface changes

N/A

API changes

\Drupal\Core\Database\Query\Merge::__toString() returns an empty string.

Data model changes

N/A

Release notes snippet

N/A

🐛 Bug report
Status

Needs work

Version

10.1

Component
Database 

Last updated 3 days ago

  • Maintained by
  • 🇳🇱Netherlands @daffie
Created by

🇳🇱Netherlands J V

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024