Skip to content

Commit

Permalink
bug #12516 Fix CustomerComponent Typo (DennisdeBest)
Browse files Browse the repository at this point in the history
This PR was merged into the 1.8 branch.

Discussion
----------

The `Sylius\Component\Customer\Model\CustomerInterface` was imported as **CustotmerComponent**. This is just to change that typo to **CustomerComponent**. It was also used 4 times in the class so I have changed those occurrences as well.

| Q               | A
| --------------- | -----
| Branch?         | master
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | 
| License         | MIT



Commits
-------

fab5759 Fix CustomerComponent Typo
  • Loading branch information
GSadee committed Apr 20, 2021
2 parents 57fb304 + fab5759 commit e138bde
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use Sylius\Component\Core\Model\CustomerInterface;
use Sylius\Component\Core\Model\ShopUserInterface;
use Sylius\Component\Customer\Model\CustomerGroupInterface;
use Sylius\Component\Customer\Model\CustomerInterface as CustotmerComponent;
use Sylius\Component\Customer\Model\CustomerInterface as CustomerComponent;
use Sylius\Component\Resource\Factory\FactoryInterface;
use Sylius\Component\Resource\Repository\RepositoryInterface;
use Symfony\Component\OptionsResolver\Options;
Expand Down Expand Up @@ -97,10 +97,10 @@ protected function configureOptions(OptionsResolver $resolver): void
->setDefault('customer_group', LazyOption::randomOneOrNull($this->customerGroupRepository, 100))
->setAllowedTypes('customer_group', ['null', 'string', CustomerGroupInterface::class])
->setNormalizer('customer_group', LazyOption::findOneBy($this->customerGroupRepository, 'code'))
->setDefault('gender', CustotmerComponent::UNKNOWN_GENDER)
->setDefault('gender', CustomerComponent::UNKNOWN_GENDER)
->setAllowedValues(
'gender',
[CustotmerComponent::UNKNOWN_GENDER, CustotmerComponent::MALE_GENDER, CustotmerComponent::FEMALE_GENDER]
[CustomerComponent::UNKNOWN_GENDER, CustomerComponent::MALE_GENDER, CustomerComponent::FEMALE_GENDER]
)
->setDefault('phone_number', function (Options $options): string {
return $this->faker->phoneNumber;
Expand Down

0 comments on commit e138bde

Please sign in to comment.