Skip to content

Fix compatibility with doctrine/collections v3 and bump phpstan to v2 - #51

Merged
W0rma merged 5 commits into
Codeception:mainfrom
W0rma:doctrine-collections-v3
Nov 2, 2026
Merged

W0rma merged 5 commits into
Codeception:mainfrom
W0rma:doctrine-collections-v3

Conversation

@W0rma

@W0rma W0rma commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Relevant changes in doctrine/collections:

  • 3.0:
    • the parameter accessRawFieldValues is noop and deprecated
    • orderBy expects an instance of the Order enum
  • 3.1:
    • the Order enum was deprecated in favor of the SortDirection enum

I noticed that the phpstan job was red.
Therefore, this PR bumps the phpstan version as well.
Let me know if you prefer to do that in a dedicated PR.

@W0rma

W0rma commented Sep 16, 2026

Copy link
Copy Markdown
Contributor Author

@TavoNiievez WDYT?

W0rma added 4 commits November 2, 2026 12:34
Reported by phpstan
from 1.7.0, the listener is declared as postPersist(PostPersistEventArgs $args), which works with ORM 2.14+ and ORM 3.
@W0rma
W0rma force-pushed the doctrine-collections-v3 branch from 3008261 to a36e69e Compare November 2, 2026 11:39
This should fix random ci errors which occur when the ULID's random bytes include a 0x00.
The failures come from a known limitation of PHP's sqlite3 extension, not from the module. The stored id comes back truncated and can't be converted to a Ulid again.
@W0rma
W0rma merged commit 7f7c307 into Codeception:main Nov 2, 2026
8 checks passed
@W0rma
W0rma deleted the doctrine-collections-v3 branch November 2, 2026 12:13
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.

1 participant