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

Narrow integer to param class constants #10796

Closed
wants to merge 1 commit into from

Conversation

greg0ire
Copy link
Member

You cannot just pass any integer as a type, it has to map to something meaningful.

The psalm types introduced here are copied from doctrine/dbal 4, with a small difference: since we are not dealing with actual enums yet, but with class constants, we add ::*, which is compatible with both cases (class or enum).

You cannot just pass any integer as a type, it has to map to something
meaningful.

The psalm types introduced here are copied from doctrine/dbal 4, with a
small difference: since we are not dealing with actual enums yet, but
with class constants, we add ::*, which is compatible with both cases
(class or enum).
@greg0ire
Copy link
Member Author

Cannot be done if we still support DBAL 2 🤔

@greg0ire greg0ire marked this pull request as draft June 25, 2023 15:57
Copy link
Contributor

There hasn't been any activity on this pull request in the past 90 days, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 7 days.
If you want to continue working on it, please leave a comment.

@github-actions github-actions bot added the Stale label Oct 25, 2024
@greg0ire greg0ire closed this Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant