Skip to content

Commit

Permalink
Merge pull request #7 from DobryProgramator/smartform_model
Browse files Browse the repository at this point in the history
Smartform model change
  • Loading branch information
Holicz committed Mar 24, 2021
2 parents aafddda + cc169dc commit 9198d80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Form/Model/SmartformAddressModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace DobryProgramator\SmartformBundle\Form\Model;

use DobryProgramator\SmartformBundle\Entity\AbstractSmartformAddress;
use DobryProgramator\SmartformBundle\Entity\SmartformAddressInterface;
use Symfony\Component\Validator\Constraints as Assert;

final class SmartformAddressModel
Expand Down Expand Up @@ -88,7 +88,7 @@ public static function createEmpty(): self
return new self();
}

public static function createFromEntity(AbstractSmartformAddress $entity): self
public static function createFromEntity(SmartformAddressInterface $entity): self
{
$model = self::createEmpty();

Expand Down

0 comments on commit 9198d80

Please sign in to comment.