$type is optional, so it must be ``$type = null``