fixed implicit nullable parameter, gh actions dependencies
This commit is contained in:
@ -29,7 +29,7 @@ final class ResetPasswordEvent extends Event
|
||||
protected $form;
|
||||
protected $token;
|
||||
|
||||
public function __construct(Token $token = null, RecoveryForm $form = null, array $config = [])
|
||||
public function __construct(?Token $token = null, ?RecoveryForm $form = null, array $config = [])
|
||||
{
|
||||
$this->form = $form;
|
||||
$this->token = $token;
|
||||
|
||||
@ -52,7 +52,7 @@ class MailFactory
|
||||
* @throws InvalidConfigException
|
||||
* @return MailService
|
||||
*/
|
||||
public static function makeRecoveryMailerService($email, Token $token = null)
|
||||
public static function makeRecoveryMailerService($email, ?Token $token = null)
|
||||
{
|
||||
/** @var Module $module */
|
||||
$module = Yii::$app->getModule('user');
|
||||
@ -74,7 +74,7 @@ class MailFactory
|
||||
* @throws InvalidConfigException
|
||||
* @return MailService
|
||||
*/
|
||||
public static function makeConfirmationMailerService(User $user, Token $token = null)
|
||||
public static function makeConfirmationMailerService(User $user, ?Token $token = null)
|
||||
{
|
||||
/** @var Module $module */
|
||||
$module = Yii::$app->getModule('user');
|
||||
|
||||
@ -144,7 +144,7 @@ class Profile extends ActiveRecord
|
||||
*
|
||||
* @return DateTime
|
||||
*/
|
||||
public function getLocalTimeZone(DateTime $dateTime = null)
|
||||
public function getLocalTimeZone(?DateTime $dateTime = null)
|
||||
{
|
||||
return $dateTime === null ? new DateTime() : $dateTime->setTimezone($this->getTimeZone());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user