for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace EmailChangeVerification\User;
use EmailChangeVerification\Notifications\EmailChangeNotification;
trait WithEmailChangeVerification
{
/**
* Get the e-mail address where email change verification links are sent.
*
* @return string
*/
public function getEmailForChangeEmail(): string
return $this->email;
}
* Send the verification notification.
* @param string $token
* @param string $newEmail
* @return void
public function sendEmailChangeNotification(string $token, string $newEmail): void
$this->notify(new EmailChangeNotification($token, $newEmail));
notify()
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
$this->/** @scrutinizer ignore-call */
notify(new EmailChangeNotification($token, $newEmail));