Repository navigation
Conversation
…hods The 4.x line still announced the removal of getInstance(), the name property, the setQuery() offset/limit arguments and DatabaseQuery::dump() for 3.0, and pointed to the removed LimitableInterface. They now say 5.0 and QueryInterface::setLimit(). Several driver methods are stubs whose docblocks promised real results: SqliteDriver::getTableCreate() returns the table names, and SqlsrvDriver's connected(), getCollation(), getConnectionCollation(), getTableCreate() and getTableKeys() return fixed values. Their docblocks now say so. 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
Docblocks and runtime messages that contradict the code:
DatabaseDriver::getInstance()and$instances, thenamemagic property, the$offset/$limitarguments ofsetQuery()(driver andDatabaseInterface) andDatabaseQuery::dump()are still present in 4.x, but their@deprecatedtags andtrigger_deprecation()messages announced removal "in 3.0". They now say 5.0, where the removal is planned.setQuery()docblocks pointed toLimitableInterface::setLimit(), which was removed in 4.0; they now point toQueryInterface::setLimit().SqliteDriver::getTableCreate()returns the given table names instead of CREATE statements;SqlsrvDriver::connected()always returnstrue,getCollation()/getConnectionCollation()return a hard-coded'MSSQL UTF-8 (UCS2)', andgetTableCreate()/getTableKeys()return[]. The docblocks promised real results; they now describe what the methods actually return. Implementing them (e.g.sqlite_master.sql, aSELECT 1probe for SQL Server) would be a behaviour change and is left for separate PRs.Only docblocks and deprecation message texts change; no behaviour change.
Testing Instructions
Nothing to test beyond the existing suites; phpcs and PHPStan pass.
Documentation Changes Required
None on
4.x-dev. #373's update guides already say these APIs survive until 5.0.🤖 Generated with Claude Code