Repository navigation
Conversation
Several 5.0 changes need an entry in the update guide; adding the empty guide first keeps their pull requests from conflicting over its creation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
quoteName() with arrays of different length returned an empty array, which 4.x deprecated. It now throws an InvalidArgumentException, as it already did in 4.x for an array of names with a string alias. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of Changes
DatabaseDriver::quoteName($name, $as)with an array of names and an alias array of a different length returned[], so queries silently selected nothing or broke far from the cause. 4.x deprecates this (#394); 5.0 now throws anInvalidArgumentException, the same exception 4.x already throws for an array of names with a string alias.Testing Instructions
testQuoteNameWithMismatchedAliasesinTests/AbstractDatabaseDriverTestCase.phpexpects the exception (vendor/bin/phpunit -c phpunit.sqlite.xml.dist --filter Mismatched).When 4.x-dev is merged into 5.x-dev after the 4.x PR: the 4.x PR adds a test with the same name that expects the deprecation; keep this (5.x) version, and keep the 4.x test for the string alias.
Documentation Changes Required
Entry "
quoteName()rejects mismatched aliases" indocs/v4-to-v5-update.md.Depends on #394 (deprecation in 4.x) and #410 (creates
docs/v4-to-v5-update.md; this branch is based on it).🤖 Generated with Claude Code