Skip to content

Pr/9 #10

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

Merged
merged 100 commits into from
Jan 30, 2020
Merged

Pr/9 #10

merged 100 commits into from
Jan 30, 2020

Conversation

divine
Copy link
Owner

@divine divine commented Jan 30, 2020

No description provided.

Smolevich and others added 27 commits January 22, 2020 23:40
…odecov

[refactor] Replaced Coveralls with Codecov
[hotfix] The Mongo version in CI for 4.0 uses actually the 4
…r-coveralls

Update ci file and composer dependencies
(cherry picked from commit 1115bf5)
 Add MorphMany relation to replaced whereIn method.
[Updated PR#1746] Add MustVerifyEmail
HasOne / HasMany must respect $localKey parameter
[Updated PR#1746] Add MustVerifyEmail
…bute

Merged from halaei:fix-test-asser-object-not-has-attribute
[Updated PR#1468] Fix assertObjectNotHasAttribute cannot test magic attributes
@divine divine merged commit b3ac78f into laravel-7 Jan 30, 2020
@divine divine deleted the pr/9 branch February 10, 2020 19:35
divine pushed a commit that referenced this pull request Aug 24, 2023
…eject invalid array (#10)

The Query\Builder::whereBetween() method can be used like this:

whereBetween('date_field', [min, max])
whereBetween('date_field', collect([min, max]))
whereBetween('date_field', CarbonPeriod)

Laravel allows other formats: the $values array is flatten and the builder assumes there are at least 2 elements and ignore the others. It's a design that can lead to misunderstandings. I prefer to raise an exception when we have incorrect values, rather than trying to guess what the developer would like to do.

Support for CarbonPeriod was fixed in Laravel 10: laravel/framework#46720 because the query builder was taking the 1st 2 values of the iterator instead of the start & end dates.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants