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 9402474 commit a02a925Copy full SHA for a02a925
src/IMAP/Message.php
@@ -232,14 +232,14 @@ public function __call($method, $arguments) {
232
if(strtolower(substr($method, 0, 3)) === 'get') {
233
$name = snake_case(substr($method, 3));
234
235
- if(in_array($name, $this->attributes)) {
+ if(in_array($name, array_keys($this->attributes))) {
236
return $this->attributes[$name];
237
}
238
239
}elseif (strtolower(substr($method, 0, 3)) === 'set') {
240
241
242
243
$this->attributes[$name] = array_pop($arguments);
244
245
0 commit comments