Skip to content

Commit d5c34fb

Browse files
fix(webklex): Add Header.has(), called by Part.isAttachment() #5267 from boite/fix-missing-has
fix(webklex): Add Header.has(), called by Part.isAttachment()
2 parents a664ac5 + 2b2d7b1 commit d5c34fb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

overrides/webklex/php-imap/src/Header.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,16 @@ public function get($name) {
118118
return null;
119119
}
120120

121+
/**
122+
* Check if a specific attribute exists
123+
* @param string $name
124+
*
125+
* @return bool
126+
*/
127+
public function has($name): bool {
128+
return isset($this->attributes[$name]);
129+
}
130+
121131
/**
122132
* Set a specific attribute
123133
* @param string $name

0 commit comments

Comments
 (0)