Call to a member function getCollectionType() on bool
.