Skip to content

Commit 26941b0

Browse files
authored
Mailable : fixes strict comparison with int value (#45138)
1 parent 0bb828f commit 26941b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Mail/Mailables/Envelope.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,6 @@ public function hasSubject(string $subject)
364364
*/
365365
public function hasMetadata(string $key, string $value)
366366
{
367-
return isset($this->metadata[$key]) && $this->metadata[$key] === $value;
367+
return isset($this->metadata[$key]) && (string) $this->metadata[$key] === $value;
368368
}
369369
}

0 commit comments

Comments
 (0)