A declension is simply the "family" that a noun belongs to - for example, the noun lex, legis<em> </em>(law) is part of the 3rd declension and the noun portus, portūs (harbor) is part of the 4th declension. There is no rule in Latin that all the nouns in a sentence have to be part of the same declension.