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

Document LockMode enums #9319

Merged
merged 1 commit into from
Jan 2, 2022
Merged

Conversation

derrabus
Copy link
Member

@derrabus derrabus commented Jan 2, 2022

This PR narrows down the allowed value range for $lockMode parameters. This way, Psalm and PHPStan can inspect userland code that calls our methods and warn about invalid $lockMode values.

@derrabus derrabus added this to the 2.11.0 milestone Jan 2, 2022
@derrabus derrabus merged commit 8c6fc5a into doctrine:2.11.x Jan 2, 2022
@derrabus derrabus deleted the types/lock-mode branch January 2, 2022 17:01
derrabus added a commit to derrabus/orm that referenced this pull request Jan 2, 2022
* 2.11.x:
  Run static analysis with language level PHP 8.1 (doctrine#9314)
  Document LockMode enums (doctrine#9319)
  Document PHPUnit mocks with intersection types (doctrine#9318)
  Run PHP CodeSniffer on PHP 8.1 (doctrine#9317)
  Psalm 4.17.0 (doctrine#9315)
  Run static analysis on PHP 8.1 (doctrine#9310)
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.

2 participants