Skip to content

Commit 7e83e78

Browse files
committed
Document UserDataProcessor data sent when no user
This paragraph was removed in d4ef9fa since it was no longer true since 24bbda1, but then became true again in 819667c.
1 parent 819667c commit 7e83e78

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Processors/UserDataProcessor.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
* By default only the 'id' field from the user is attached; pass null or an
2020
* empty array as the 'only' option to override this, or configure otherwise as
2121
* you see fit.
22+
*
23+
* If no user is logged in, the data `['id' => null]` is still attached to the
24+
* error object, to differentiate a case where no data on the current user is
25+
* available from a case where it is known that no user is logged in.
2226
*/
2327
class UserDataProcessor
2428
{

0 commit comments

Comments
 (0)