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

Deprecate passing null as offset #311

Merged
merged 1 commit into from
Aug 4, 2022

Conversation

derrabus
Copy link
Member

@derrabus derrabus commented Aug 3, 2022

In order to be able to narrow down parameter and return types for 2.0, I think we should disallow using null as offset for Criteria instances. We've applied similar changes to DBAL and ORM already.

@derrabus derrabus added this to the 1.7.0 milestone Aug 3, 2022
@derrabus derrabus requested a review from greg0ire August 3, 2022 23:01
@derrabus derrabus merged commit e0e4ff7 into doctrine:1.7.x Aug 4, 2022
@derrabus derrabus deleted the deprecate/null-offset branch August 4, 2022 15:07
mbabker pushed a commit to BabDev/Pagerfanta that referenced this pull request Feb 1, 2024
Fixes deprecation:
```
Passing null to Doctrine\Common\Collections\Criteria::setFirstResult() is deprecated, pass 0 instead.
```

Deprecation info: doctrine/collections#311
mbabker pushed a commit to Pagerfanta/doctrine-collections-adapter that referenced this pull request Feb 1, 2024
Fixes deprecation:
```
Passing null to Doctrine\Common\Collections\Criteria::setFirstResult() is deprecated, pass 0 instead.
```

Deprecation info: doctrine/collections#311
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