-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lockable immutable config #104
Conversation
ebb6012
to
6448e00
Compare
src/PubNub/PNConfiguration.php
Outdated
|
||
/** @var string Secret key provided by PubNub */ | ||
private $secretKey; | ||
private ?string $secretKey = null; | ||
|
||
/** @var string */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this comment now that we have authKey typed?
The same question for other properties.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added descriptions to them from the docs
{ | ||
return (is_string($value) && strlen(trim($value)) > 0); | ||
} | ||
|
||
public function disableImmutableCheck(): self |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is a purpose of this method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so you can disable checking and on your own responsibility have a mutable config
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok. Thanks.
912d445
to
b7b204f
Compare
b7b204f
to
e87253e
Compare
No description provided.