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

AbstractPlatform: allow any string in interval for date interval expression #6302

Merged
merged 2 commits into from Feb 12, 2024

Conversation

ondrejmirtes
Copy link
Contributor

Q A
Type improvement

Summary

This change allows these methods to be called with just a string in ORM 3.0.x. See doctrine/orm#11243 (comment)

DBAL 4.0.x already has string there.

Also I'd like to note that I noticed that methods getDateAddQuartersExpression and getDateSubQuartersExpression aren't called from ORM. Shouldn't support for them be added?

@ondrejmirtes
Copy link
Contributor Author

There are going to be some CI failures, waiting for the workflow approval :)

derrabus
derrabus previously approved these changes Feb 9, 2024
@derrabus
Copy link
Member

derrabus commented Feb 9, 2024

Static analysis is failing as predicted. 🙂

@ondrejmirtes
Copy link
Contributor Author

Alright, the 2nd commit backports the solution from DBAL 4.0 :) Let's run the workflows again.

@ondrejmirtes
Copy link
Contributor Author

The CS violation should be gone now.

@derrabus derrabus added the Bug label Feb 12, 2024
@ondrejmirtes
Copy link
Contributor Author

Alright, it's green :) Once this is merged and released, I'll update the DBAL version constraint doctrine/orm#11243 to require this new version.

@derrabus derrabus merged commit a19a1d0 into doctrine:3.8.x Feb 12, 2024
90 checks passed
derrabus added a commit that referenced this pull request Feb 13, 2024
* 3.8.x:
  [3.8.x] AbstractPlatform - allow any string in interval for date interval expression (#6302)
derrabus added a commit that referenced this pull request Feb 13, 2024
* 4.0.x:
  [Documentation] Adding exact command for Postgres serial migration (#6305)
  [3.8.x] AbstractPlatform - allow any string in interval for date interval expression (#6302)
  Update UPGRADE.md
  Psalm 5.21.1 (#6294)
@derrabus derrabus changed the title [3.8.x] AbstractPlatform - allow any string in interval for date interval expression AbstractPlatform: allow any string in interval for date interval expression Feb 14, 2024
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.

None yet

2 participants