The `$adapter` us a string, so can't type-hint it