Skip to content

Fix token revocation listing for tokens when using ODM#424

Open
melkamar wants to merge 1 commit into
markitosgv:masterfrom
melkamar:patch-1
Open

Fix token revocation listing for tokens when using ODM#424
melkamar wants to merge 1 commit into
markitosgv:masterfrom
melkamar:patch-1

Conversation

@melkamar
Copy link
Copy Markdown

@melkamar melkamar commented Mar 17, 2026

When using ODM, the result is not an array but
a CachingIterator. That needs to be converted
to an array for the array_map method, else it
crashes:

In ClearInvalidRefreshTokensCommand.php line 67:

  array_map(): Argument #2 ($array) must be of type array, Doctrine\ODM\MongoDB\Iterator\CachingIterator given

Also, if this could be patched as 1.5.x, that would be great as we are not in 2.x 🙏

When using ODM, the result is not an array but
a CachingIterator. That needs to be converted
to an array for the array_map method, else it
crashes.
@shakaran
Copy link
Copy Markdown
Collaborator

@melkamar could you create a test that reproduce the previous case and new case? So I can backport easily to 1.5.x. Thanks

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.

2 participants