Skip to content

Commit ee23753

Browse files
committed
Merge pull request #19 from tremby/user-data-processor-docs
Document UserDataProcessor data sent when no user
2 parents 819667c + 7e83e78 commit ee23753

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)