Skip to content

Add the getColumnName() method to the Result interface #6452

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

derrabus
Copy link
Member

Q A
Type improvement
Fixed issues Follows #6428

Summary

Following #6428, the new getColumnName() method becomes mandatory with this PR for all Result implementations.

… to the Result interface
@derrabus derrabus merged commit 6424242 into doctrine:5.0.x Jun 19, 2024
72 of 73 checks passed
@derrabus derrabus deleted the improvement/add-column-name branch June 19, 2024 10:38
@@ -88,6 +86,11 @@ public function rowCount(): int|string;
*/
public function columnCount(): int;

/**
* Returns the name of the column in the result set for the given 0-based index.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should probably add the @throws Exception for consistency with other methods

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea. If you don't send a PR, I'll do that tomorrow. 🙂

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants