Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 14, 2024

Bumps doctrine/collections from 1.8.0 to 2.1.5.

Release notes

Sourced from doctrine/collections's releases.

2.1.5

Release Notes for 2.1.5

2.1.x bugfix release (patch)

2.1.5

  • Total issues resolved: 0
  • Total pull requests resolved: 5
  • Total contributors: 1

Test Suite

CI

Improvement

Static Analysis

2.1.4

Release Notes for 2.1.4

2.1.x bugfix release (patch)

2.1.4

  • Total issues resolved: 0
  • Total pull requests resolved: 4
  • Total contributors: 3

Static Analysis

Improvement

... (truncated)

Upgrade guide

Sourced from doctrine/collections's upgrade guide.

Note about upgrading: Doctrine uses static and runtime mechanisms to raise awareness about deprecated code.

  • Use of @deprecated docblock that is detected by IDEs (like PHPStorm) or Static Analysis tools (like Psalm, phpstan)
  • Use of our low-overhead runtime deprecation API, details: https://github.com/doctrine/deprecations/

Upgrade to 2.2

Deprecated string representation of sort order

Criteria orderings direction is now represented by the Doctrine\Common\Collection\Order enum.

As a consequence:

  • Criteria::ASC and Criteria::DESC are deprecated in favor of Order::Ascending and Order::Descending, respectively.
  • Criteria::getOrderings() is deprecated in favor of Criteria::orderings(), which returns array<string, Order>.
  • Criteria::orderBy() accepts array<string, string|Order>, but passing anything other than array<string, Order> is deprecated.

Upgrade to 2.0

BC breaking changes

Native parameter types were added. Native return types will be added in 3.0.x As a consequence, some signatures were changed and will have to be adjusted in sub-classes.

Note that in order to keep compatibility with both 1.x and 2.x versions, extending code would have to omit the added parameter types. This would only work in PHP 7.2+ which is the first version featuring parameter widening. It is also recommended to add return types according to the tables below

You can find a list of major changes to public API below.

Doctrine\Common\Collections\Collection

1.0.x 3.0.x
add($element) add(mixed $element): void
clear() clear(): void
contains($element) contains(mixed $element): bool
isEmpty() isEmpty(): bool
removeElement($element) removeElement(mixed $element): bool
containsKey($key) containsKey(string|int $key): bool
get() get(string|int $key): mixed

... (truncated)

Commits
  • 68b8348 Merge pull request #398 from greg0ire/missing-upgrade-note
  • ae00bc7 Add missing upgrade note
  • 2ccb7c5 Merge pull request #394 from gharlan/patch-1
  • 2270a54 reduce method: more accurate types
  • 3439e45 Upgrade to PHPUnit 10 (#393)
  • a423a74 Merge pull request #390 from greg0ire/fix-doc-job
  • 2bf47b0 Merge pull request #388 from greg0ire/flatten-directory-tree
  • 0cf9f06 Use a stable version of the guides-cli
  • 5e458f6 Flatten directory tree
  • 36bf824 Merge pull request #387 from greg0ire/address-psalm-issue
  • Additional commits viewable in compare view

Most Recent Ignore Conditions Applied to This Pull Request
Dependency Name Ignore Conditions
doctrine/collections [>= 2.2.a, < 2.3]

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [doctrine/collections](https://github.com/doctrine/collections) from 1.8.0 to 2.1.5.
- [Release notes](https://github.com/doctrine/collections/releases)
- [Upgrade guide](https://github.com/doctrine/collections/blob/2.2.x/UPGRADE.md)
- [Commits](doctrine/collections@1.8.0...2.1.5)

---
updated-dependencies:
- dependency-name: doctrine/collections
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file php Pull requests that update Php code labels Oct 14, 2024
@mitelg
Copy link
Contributor

mitelg commented Oct 14, 2024

@dependabot ignore this major version

@mitelg mitelg closed this Oct 14, 2024
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Oct 14, 2024

OK, I won't notify you about version 2.x.x again, unless you re-open this PR.

@dependabot dependabot bot deleted the dependabot/composer/doctrine/collections-2.1.5 branch October 14, 2024 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants