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

Use generators for large data providers #6508

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

derrabus
Copy link
Member

@derrabus derrabus commented Aug 28, 2024

Q A
Type improvement
Fixed issues N/A

Summary

While merging 3.9.x I found myself debugging PHPStan errors in the humongous array shape that is the dataExpandListParameters data provider. I'd like to use a generator function instead which should give us more precise static analysis results in the future.

These are mostly whitespace changes. GitHub's default diff view is not very helpful, I'm afraid. 🙈

@derrabus derrabus added this to the 3.9.1 milestone Aug 28, 2024
@derrabus derrabus requested a review from greg0ire August 28, 2024 07:01
@derrabus derrabus force-pushed the improvement/yield-data-providers branch from ab25c9f to e6ecb24 Compare August 28, 2024 07:04
@derrabus derrabus merged commit d19cf2c into doctrine:3.9.x Aug 28, 2024
85 of 86 checks passed
@derrabus derrabus deleted the improvement/yield-data-providers branch August 28, 2024 07:46
derrabus added a commit to derrabus/dbal that referenced this pull request Aug 28, 2024
* 3.9.x:
  Use generators for large data providers (doctrine#6508)
  PHPStan 1.12 (doctrine#6507)
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)
@janedbal
Copy link
Contributor

janedbal commented Sep 3, 2024

These are mostly whitespace changes. GitHub's default diff view is not very helpful, I'm afraid. 🙈

You make make it a bit better with this option:

image

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