We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8da282a commit 4df33c4Copy full SHA for 4df33c4
src/Auth/AuthUserTrait.php
@@ -4,6 +4,7 @@
4
5
use ArrayAccess;
6
use Cake\Utility\Hash;
7
+use Countable;
8
use InvalidArgumentException;
9
use Traversable;
10
@@ -184,7 +185,7 @@ protected function _toArray(ArrayAccess|array $identity): array {
184
185
if ($identity instanceof Traversable) {
186
return iterator_to_array($identity);
187
}
- if (!$identity instanceof \Countable) {
188
+ if (!$identity instanceof Countable) {
189
throw new InvalidArgumentException('You cannot use a pure ArrayAccess object as identity. Use Entity or ArrayObject at least.');
190
191
0 commit comments