mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
fix type for Notification email addresses
This commit is contained in:
parent
a8db07a383
commit
4425f2ad49
@ -159,7 +159,7 @@ class Notification implements TrackUpdateInterface
|
||||
|
||||
public function addAddressesEmail(string $email)
|
||||
{
|
||||
if (!in_array($email, $this->addressesEmails)) {
|
||||
if (!in_array($email, $this->addressesEmails, true)) {
|
||||
$this->addressesEmails[] = $email;
|
||||
$this->addressesEmailsAdded[] = $email;
|
||||
}
|
||||
@ -167,7 +167,7 @@ class Notification implements TrackUpdateInterface
|
||||
|
||||
public function removeAddressesEmail(string $email)
|
||||
{
|
||||
if (in_array($email, $this->addressesEmails)) {
|
||||
if (in_array($email, $this->addressesEmails, true)) {
|
||||
$this->addressesEmails = array_filter($this->addressesEmails, fn ($e) => $e !== $email);
|
||||
$this->addressesEmailsAdded = array_filter($this->addressesEmailsAdded, fn ($e) => $e !== $email);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user