Changed variables to Array in PostRepository.