Skip to content

fix: prevent database column parameter deprecation#799

Merged
anonymoususer72041 merged 1 commit into
opencats:masterfrom
anonymoususer72041:fix/database-column-parameter-order
Jun 4, 2026
Merged

fix: prevent database column parameter deprecation#799
anonymoususer72041 merged 1 commit into
opencats:masterfrom
anonymoususer72041:fix/database-column-parameter-order

Conversation

@anonymoususer72041

Copy link
Copy Markdown
Contributor

This PR updates the DatabaseConnection::getColumn() method signature to avoid a PHP deprecation caused by an optional parameter being declared before required parameters.

The previous signature declared $query with a default value even though $row and $column were required. Modern PHP versions implicitly treat this as required and emit a deprecation warning when the file is loaded.

The change removes the unnecessary default value from $query. Existing call sites already pass all three arguments, so no call-site changes are required and the existing behavior is preserved.

Validation was performed by linting lib/DatabaseConnection.php and loading the file with E_ALL enabled to confirm that the DatabaseConnection::getColumn() parameter-order deprecation is no longer emitted.

@anonymoususer72041 anonymoususer72041 merged commit dd93e8d into opencats:master Jun 4, 2026
4 checks passed
@anonymoususer72041 anonymoususer72041 deleted the fix/database-column-parameter-order branch June 4, 2026 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant