Skip to content

Commit edd6d32

Browse files
committed
Remove non-existing class references
1 parent b20ec8f commit edd6d32

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/Fixture/Factory/BrandAwareExampleFactoryTrait.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66

77
use Loevgaard\SyliusBrandPlugin\Model\BrandAwareInterface;
88
use Loevgaard\SyliusBrandPlugin\Model\BrandInterface;
9-
use Loevgaard\SyliusBrandPlugin\Repository\BrandRepositoryInterface;
109
use Sylius\Bundle\CoreBundle\Fixture\OptionsResolver\LazyOption;
10+
use Sylius\Resource\Doctrine\Persistence\RepositoryInterface;
1111
use Symfony\Component\OptionsResolver\OptionsResolver;
1212

1313
trait BrandAwareExampleFactoryTrait
1414
{
15-
protected BrandRepositoryInterface $brandRepository;
16-
17-
public function __construct(BrandRepositoryInterface $brandRepository)
15+
/**
16+
* @param RepositoryInterface<BrandInterface> $brandRepository
17+
*/
18+
public function __construct(protected readonly RepositoryInterface $brandRepository)
1819
{
19-
$this->brandRepository = $brandRepository;
2020
}
2121

2222
protected function configureBrandOptions(OptionsResolver $resolver, int $chanceOfRandomBrand = 90): void

src/Fixture/Factory/BrandsAwareExampleFactoryTrait.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@
88
use Faker\Generator;
99
use Loevgaard\SyliusBrandPlugin\Model\BrandAwareInterface;
1010
use Loevgaard\SyliusBrandPlugin\Model\BrandInterface;
11-
use Loevgaard\SyliusBrandPlugin\Repository\BrandRepositoryInterface;
1211
use Sylius\Bundle\CoreBundle\Fixture\OptionsResolver\LazyOption;
12+
use Sylius\Resource\Doctrine\Persistence\RepositoryInterface;
1313
use Symfony\Component\OptionsResolver\OptionsResolver;
1414
use Webmozart\Assert\Assert;
1515

1616
trait BrandsAwareExampleFactoryTrait
1717
{
18-
protected BrandRepositoryInterface $brandRepository;
19-
2018
protected Generator $faker;
2119

22-
public function __construct(BrandRepositoryInterface $brandRepository)
20+
/**
21+
* @param RepositoryInterface<BrandInterface> $brandRepository
22+
*/
23+
public function __construct(protected readonly RepositoryInterface $brandRepository)
2324
{
24-
$this->brandRepository = $brandRepository;
2525
$this->faker = Factory::create();
2626
}
2727

0 commit comments

Comments
 (0)