Skip to content

Commit

Permalink
Fix use imports and some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Zales0123 committed Sep 17, 2021
1 parent 676df96 commit e493824
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/Sylius/Bundle/ApiBundle/Command/ResetPassword.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
/** @experimental */
class ResetPassword
{
public string $newPassword;
public ?string $newPassword = null;

public string $confirmNewPassword;
public ?string $confirmNewPassword = null;

public string $resetPasswordToken;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
namespace Sylius\Bundle\CoreBundle\Command;

use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Sylius\Bundle\CoreBundle\Command\Model\PluginInfo;
use Sylius\Bundle\CoreBundle\Installer\Renderer\TableRenderer;
use Symfony\Component\Console\Command\Command;
Expand All @@ -30,7 +31,7 @@ final class ShowAvailablePluginsCommand extends Command
* @phpstan-var ArrayCollection<PluginInfo>
* @psalm-var ArrayCollection<array-key, PluginInfo>
*/
private ArrayCollection $plugins;
private Collection $plugins;

protected function configure(): void
{
Expand Down
4 changes: 2 additions & 2 deletions src/Sylius/Bundle/CoreBundle/Fixture/BookProductFixture.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@

namespace Sylius\Bundle\CoreBundle\Fixture;

use Faker\Generator;
use Faker\Factory;
@trigger_error('The "BookProductFixture" class is deprecated since Sylius 1.5 Use new product fixtures class located at "src/Sylius/Bundle/CoreBundle/Fixture/" instead.', \E_USER_DEPRECATED);

use Faker\Generator;
use Faker\Factory;
use Sylius\Bundle\FixturesBundle\Fixture\AbstractFixture;
use Sylius\Component\Attribute\AttributeType\IntegerAttributeType;
use Sylius\Component\Attribute\AttributeType\SelectAttributeType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@

namespace Sylius\Bundle\CoreBundle\Fixture;

use Faker\Generator;
use Faker\Factory;
@trigger_error('The "StickerProductFixture" class is deprecated since Sylius 1.5 Use new product fixtures class located at "src/Sylius/Bundle/CoreBundle/Fixture/" instead.', \E_USER_DEPRECATED);

use Faker\Generator;
use Faker\Factory;
use Sylius\Bundle\FixturesBundle\Fixture\AbstractFixture;
use Sylius\Component\Attribute\AttributeType\TextAttributeType;
use Sylius\Component\Core\Model\ProductInterface;
Expand Down

0 comments on commit e493824

Please sign in to comment.