Skip to content
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

Raise a proper exception when calling getColumnName() with negative index #6505

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

derrabus
Copy link
Member

@derrabus derrabus commented Aug 19, 2024

Q A
Type bug
Fixed issues N/A

Summary

Calling getColumnName() with a negative index is not valid. We should make sure that we handle this case consistently for all implementations.

@derrabus derrabus force-pushed the bugfix/negative-column-index branch 2 times, most recently from d763e14 to d9ef290 Compare August 19, 2024 14:01
@derrabus
Copy link
Member Author

cc @stof

@derrabus derrabus added this to the 4.1.1 milestone Aug 19, 2024
@derrabus derrabus merged commit 94dfede into doctrine:4.1.x Aug 26, 2024
79 checks passed
@derrabus derrabus deleted the bugfix/negative-column-index branch August 26, 2024 09:39
derrabus added a commit that referenced this pull request Aug 28, 2024
* 4.2.x:
  Fix more PHPStan errors
  Use generators for large data providers (#6508)
  PHPStan 1.12 (#6507)
  Raise a proper exception when calling `getColumnName()` with negative index (#6505)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants