Skip to content

Commit cd6f437

Browse files
Use strict comparison operator to check authentication type
1 parent f9871a5 commit cd6f437

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Infusionsoft/Infusionsoft.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function __construct($config = array())
110110
} else if (isset($config['apikey'])) {
111111
$this->apikey = $config['apikey'];
112112

113-
if ( substr_compare($this->apikey, 'KeapAK', 0, strlen('KeapAK') ) ) {
113+
if ( substr_compare($this->apikey, 'KeapAK', 0, strlen('KeapAK') ) === 0) {
114114
$this->authenticationType = AuthenticationType::ServiceAccountKey;
115115
} else {
116116
$this->authenticationType = AuthenticationType::LegacyKey;

0 commit comments

Comments
 (0)