It was ArrayAccess until I found out that a instance that implements
ArrayAccess doesn't pass the test for is_array...  Php wtf
On 22 Jun 2013 14:22, "Benjamin Eberlei" <notifications@github.com> wrote:

> In lib/Assert/Assertion.php:
>
> > @@ -434,7 +434,9 @@ static public function isArray($value, $message = null, $propertyPath = null)
> >       */
> >      static public function keyExists($value, $key, $message = null, $propertyPath = null)
> >      {
> > -        static::isArray($value);
> > +        if ( ! $value instanceof \ArrayObject) {
>
> didnt you mean ArrayAccess here?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/beberlei/assert/pull/18/files#r4830793>
> .
>