-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Remove broken assertion from DateAddFunction and DateSubFunction #11243
Remove broken assertion from DateAddFunction and DateSubFunction #11243
Conversation
5b8d2e7
to
2fc7661
Compare
SA complains about DBAL 3.8.1 which accepts only Should we ignore this here? Or should I send a PR to DBAL that widens the accepted type to |
2fc7661
to
1b5fc04
Compare
Yes please. And the deprecation that is triggered there for non-int values looks bogus, given that 4.0 still accepts arbitrary SQL expressions for seconds. |
Done: doctrine/dbal#6302 I didn't notice any wrong deprecations - all of them ask about |
…rval expression (#6302) <!-- Fill in the relevant information below to help triage your pull request. --> | 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?
1b5fc04
to
8b741d2
Compare
8b741d2
to
687252b
Compare
This one is ready 😊 |
Thank you! |
* 3.0.x: Remove broken assertion from DateAddFunction and DateSubFunction (doctrine#11243) Remove unused trait [Documentation] Adding link to Postgres upgrade article (doctrine#11257) fix: support array-type arg in QB variadic calls (doctrine#11242)
* 3.1.x: Fix Static Analysis folder reference (doctrine#11281) Remove broken assertion from DateAddFunction and DateSubFunction (doctrine#11243) Account for inversedBy being a non-falsy-string or null Improve static analysis on AttachEntityListenersListener docs: recommend safer way to disable logging (doctrine#11269) Remove unused baseline entries Treat '0' as a legitimate trim char Add type field mapper documentation to the sidebar Mark document as orphan Use correction sectionauthor syntax Remove unused trait [Documentation] Adding link to Postgres upgrade article (doctrine#11257) Validate more variadic parameters (doctrine#11261) Throw if a variadic parameter contains unexpected named arguments (doctrine#11260) Make docs valid according to guides 0.3.3 (doctrine#11252) fix: support array-type arg in QB variadic calls (doctrine#11242)
Closes #11240