@@ -170,7 +170,7 @@ public function credentialsChanged(
170
170
private function emailAndPasswordChanged (CustomerInterface $ customer , $ email ): void
171
171
{
172
172
$ storeId = $ customer ->getStoreId ();
173
- if (! $ storeId ) {
173
+ if ($ storeId === null ) {
174
174
$ storeId = $ this ->getWebsiteStoreId ($ customer );
175
175
}
176
176
@@ -196,7 +196,7 @@ private function emailAndPasswordChanged(CustomerInterface $customer, $email): v
196
196
private function emailChanged (CustomerInterface $ customer , $ email ): void
197
197
{
198
198
$ storeId = $ customer ->getStoreId ();
199
- if (! $ storeId ) {
199
+ if ($ storeId === null ) {
200
200
$ storeId = $ this ->getWebsiteStoreId ($ customer );
201
201
}
202
202
@@ -221,7 +221,7 @@ private function emailChanged(CustomerInterface $customer, $email): void
221
221
private function passwordReset (CustomerInterface $ customer ): void
222
222
{
223
223
$ storeId = $ customer ->getStoreId ();
224
- if (! $ storeId ) {
224
+ if ($ storeId === null ) {
225
225
$ storeId = $ this ->getWebsiteStoreId ($ customer );
226
226
}
227
227
@@ -320,7 +320,7 @@ private function getWebsiteStoreId($customer, $defaultStoreId = null): int
320
320
public function passwordReminder (CustomerInterface $ customer ): void
321
321
{
322
322
$ storeId = $ customer ->getStoreId ();
323
- if (! $ storeId ) {
323
+ if ($ storeId === null ) {
324
324
$ storeId = $ this ->getWebsiteStoreId ($ customer );
325
325
}
326
326
@@ -344,7 +344,7 @@ public function passwordReminder(CustomerInterface $customer): void
344
344
public function passwordResetConfirmation (CustomerInterface $ customer ): void
345
345
{
346
346
$ storeId = $ customer ->getStoreId ();
347
- if (! $ storeId ) {
347
+ if ($ storeId === null ) {
348
348
$ storeId = $ this ->getWebsiteStoreId ($ customer );
349
349
}
350
350
@@ -365,7 +365,7 @@ public function passwordResetConfirmation(CustomerInterface $customer): void
365
365
* @param CustomerInterface $customer
366
366
* @param string $type
367
367
* @param string $backUrl
368
- * @param int $storeId
368
+ * @param int|null $storeId
369
369
* @param string $sendemailStoreId
370
370
* @return void
371
371
* @throws LocalizedException
@@ -374,7 +374,7 @@ public function newAccount(
374
374
CustomerInterface $ customer ,
375
375
$ type = self ::NEW_ACCOUNT_EMAIL_REGISTERED ,
376
376
$ backUrl = '' ,
377
- $ storeId = 0 ,
377
+ $ storeId = null ,
378
378
$ sendemailStoreId = null
379
379
): void {
380
380
$ types = self ::TEMPLATE_TYPES ;
@@ -385,7 +385,7 @@ public function newAccount(
385
385
);
386
386
}
387
387
388
- if (! $ storeId ) {
388
+ if ($ storeId === null ) {
389
389
$ storeId = $ this ->getWebsiteStoreId ($ customer , $ sendemailStoreId );
390
390
}
391
391
0 commit comments