Skip to content

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

Merged
derrabus merged 1 commit intodoctrine:5.0.xfrom
derrabus:improvement/add-column-name
Jun 19, 2024
Merged

Add the getColumnName() method to the Result interface#6452
derrabus merged 1 commit intodoctrine:5.0.xfrom
derrabus:improvement/add-column-name

Conversation

@derrabus
Copy link
Copy Markdown
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
@derrabus derrabus deleted the improvement/add-column-name branch June 19, 2024 10:38
Comment thread src/Driver/Result.php
public function columnCount(): int;

/**
* Returns the name of the column in the result set for the given 0-based index.
Copy link
Copy Markdown
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
Copy Markdown
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