src/Validators/MiscValidators/TypeValidator.php
private function validateTypeObject($subject): bool
    {
        if (!\is_array($subject)) {
            return false;
        }
        if (count($subject) > 0 && !\is_string(\array_keys($subject)[0])) {
            return false;
        }
        return true;
    }
private function validateTypeObject($subject): bool
    {
        if (!\is_array($subject)) {
            return false;
        }
        if (count($subject) > 0 && !\is_string(\array_keys($subject)[0])) {
            return false;
        }
        return true;
    }
private function validateTypeObject ( $ subject ) : bool { if ( ! \ is_array ( $ subject ) ) { return false ; } if ( count ( $ subject ) > 0 && ! \ is_string ( \ array_keys ( $ subject ) [ 0 ] ) ) { return false ; } return true ; }
Validates subject against type = object

@param $subject
@return bool
Validates subject against type = object