src/Annotations/AbstractAnnotation.php
private function validateArrayType($value): bool
    {
        if (is_array($value) === false) {
            return false;
        }
        $count = 0;
        foreach ($value as $i => $item) {
            //not a array, but a hash/map
            if ($count !== $i) {
                return false;
            }
            $count++;
        }
        return true;
    }
private function validateArrayType($value): bool
    {
        if (is_array($value) === false) {
            return false;
        }
        $count = 0;
        foreach ($value as $i => $item) {
            //not a array, but a hash/map
            if ($count !== $i) {
                return false;
            }
            $count++;
        }
        return true;
    }
private function validateArrayType ( $ value ) : bool { if ( is_array ( $ value ) === false ) { return false ; } $ count = 0 ; foreach ( $ value as $ i => $ item ) { //not a array, but a hash/map if ( $ count !== $ i ) { return false ; } $ count ++ ; } return true ; }
Validate array type

@param mixed $value

@return bool
Validate array type