Skip to content

Commit d8bb249

Browse files
committed
Deprecate support for non UserInterface objects
1 parent 94018dd commit d8bb249

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Authentication/ConnectionRepositoryInterface.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ public function findAllWithRoles(Topic $topic, array $roles): array;
2727
public function findTokenForConnection(ConnectionInterface $connection): TokenInterface;
2828

2929
/**
30-
* @return string|\Stringable|UserInterface
30+
* @return string|\Stringable|UserInterface|null
31+
*
32+
* @note As of 4.0, the return type will change to `UserInterface|null`.
3133
*/
3234
public function getUser(ConnectionInterface $connection);
3335
}

0 commit comments

Comments
 (0)