We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0be23bb commit 47d8405Copy full SHA for 47d8405
lib/SparkPost/SparkPost.php
@@ -116,7 +116,7 @@ public function setHttpAdapter($httpAdapter) {
116
*/
117
public function setConfig($settingsConfig) {
118
// if the config map is a string we should assume that its an api key
119
- if (gettype($settingsConfig) === 'string') {
+ if (is_string($settingsConfig)) {
120
$settingsConfig = ['key'=>$settingsConfig];
121
}
122
0 commit comments