You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd suggest deprecating it, because it basically prevents setting any other options, like database name, measurementSentMessages, measurementConsumedMessages and measurementConsumers (others being basically configuration options for the client itself).
In my opinion it would be best to be as strict as possible when creating function definitions, in this case a constructor. If there is a secondary constructor needed, it can always take the form of a static function, like so:
or similar. This would allow us to skip most of type checks, as PHP will do a function argument check on it's own and function declaration would explicitly say what value types are acceptable.