- Issue created by @quietone
- 🇳🇿New Zealand quietone
Came across 🐛 Drupal\Core\Database\Query\Query::__toString() must return a string value Needs work today which is fixing this as part of the problem in that Issue Summary. That was RTBC and pushed back for a test in a different file. git status have moved the changes relevant to this issue here and adding credit.
- Merge request !5135Fix return type in \Drupal\Core\Database\Query\Merge::__toString → (Closed) created by quietone
- last update
about 1 year ago 30,439 pass - Status changed to Needs review
about 1 year ago 9:41am 26 October 2023 - Status changed to Needs work
about 1 year ago 10:36am 26 October 2023 - last update
about 1 year ago Custom Commands Failed - last update
about 1 year ago 30,428 pass, 1 fail - Status changed to Needs review
7 months ago 5:42am 27 April 2024 - Status changed to RTBC
7 months ago 9:06am 27 April 2024 - Status changed to Needs work
7 months ago 9:29am 28 April 2024 - 🇬🇧United Kingdom alexpott 🇪🇺🌍
I'm not sure this is the correct fix. Atm if this is called you would get an error - see https://3v4l.org/JKklI
Can we put a throw \BadMethodCallException in here instead.
- Status changed to Needs review
3 months ago 8:42am 19 August 2024 - 🇳🇿New Zealand quietone
Forgot about this one. Rebase and change to throwing an exception.
- Status changed to RTBC
3 months ago 1:41pm 19 August 2024 - 🇺🇸United States smustgrave
Appears feedback has been addressed
Test coverage added for the exception in #12 also appears to be added.
- Status changed to Needs work
2 months ago 3:58pm 11 September 2024 - Status changed to Needs review
2 months ago 3:58am 12 September 2024 - Status changed to RTBC
2 months ago 2:24pm 12 September 2024 - 🇺🇸United States smustgrave
Think adding the additional sentence addresses the feedback.
- Status changed to Needs work
2 months ago 7:57am 13 September 2024 - 🇬🇧United Kingdom alexpott 🇪🇺🌍
I think we should fix \Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses\Upsert::__toString() here - it should throw an exception. And I also think we should change \Drupal\Tests\Core\Database\Stub\StubUpsert::__toString to throwing an exception too. That's the only place I can find where we return an empty string here - it's it just test code for stub for test purposes so does not count.
- Status changed to Needs review
2 months ago 8:37am 16 September 2024 - Status changed to RTBC
2 months ago 2:08pm 20 September 2024 - 🇺🇸United States smustgrave
Feedback for a return exception from #18 appears to be addressed.
-
alexpott →
committed 5f1bd5ff on 11.x
Issue #3387960 by quietone, alexpott, daffie, mondrake, amateescu: Fix...
-
alexpott →
committed 5f1bd5ff on 11.x
- 🇳🇿New Zealand quietone
Closed 🐛 Drupal\Core\Database\Query\Query::__toString() must return a string value Needs work as a duplicate and moving credit.
Automatically closed - issue fixed for 2 weeks with no activity.