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 psalm-assert to get rid of assert() calls #5877

Merged
merged 1 commit into from
Jan 28, 2023

Conversation

derrabus
Copy link
Member

Q A
Type N/A
Fixed issues N/A

Summary

If we call Connection::connect(), we can be sure that the driver connection has been created. I've added an annotation that allows us to drop assert($this->_conn !== null); calls.

@derrabus derrabus added this to the 3.6.0 milestone Jan 28, 2023
@greg0ire greg0ire merged commit a340f1f into doctrine:3.6.x Jan 28, 2023
@greg0ire
Copy link
Member

Thanks @derrabus !

@derrabus derrabus deleted the improvement/psalm-assert branch January 28, 2023 14:11
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 29, 2024
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.

None yet

2 participants