You're already type-hinting `$queryLogger`, so does it matter if it's null?