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

Allow to skip property type validation #11130

Merged

Conversation

derrabus
Copy link
Member

@derrabus derrabus commented Dec 20, 2023

See #11073 (comment) for context.

#10946 introduced validation of property types for the ValidateSchemaCommand. For existing projects, this new feature might uncover quite a few valid problems, that need a little time to fix. This is problematic because if schema validation is run in CI, a project basically can't upgrade until all of the newly discovered errors have been fixed. This leaves two options:

  • Disable schema validation completely and upgrade to 2.17.
  • Stay on 2.16 until all error have been resolved.

Both strategies are not desirable which is why I propose to add a flag to the command that allows us to opt out of the validation of property types. This allows this kind of projects to upgrade to 2.17 and fix the type mismatches iteratively.

@derrabus derrabus added this to the 2.17.2 milestone Dec 20, 2023
@derrabus derrabus merged commit 393679a into doctrine:2.17.x Dec 20, 2023
58 checks passed
@derrabus derrabus deleted the improvement/skip-property-type-validation branch December 20, 2023 21:47
@kevinpapst
Copy link

Thank you @derrabus , I had to deactivate doctrine:schema:validate in CI due to that new validation, which reported "false negatives" on a mixed type, which was manually type-handled.

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