hubspot-php icon indicating copy to clipboard operation
hubspot-php copied to clipboard

README: Fix Config Example

Open amayer5125 opened this issue 3 years ago • 0 comments

The oauth2 config is treated as a boolean. If someone copies and pastes this example they will get unexpected behavior because 'false' evaluates to true if converted to a boolean.

php > $oauth = 'false';
php > var_dump(isset($oauth) ? $oauth : false);
string(5) "false"
php > var_dump((bool)$oauth);
bool(true)

amayer5125 avatar Sep 12 '22 20:09 amayer5125