Skip to content

Commit

Permalink
[bugfix] fix definitionId type in ImportDefinition
Browse files Browse the repository at this point in the history
  • Loading branch information
breakone authored Jul 17, 2024
1 parent 3d561d3 commit e374449
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DataDefinitionsBundle/Model/ImportDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,15 @@ class ImportDefinition extends AbstractDataDefinition implements ImportDefinitio
*/
public $persister;

public static function getById(int $name)
public static function getById(int|string $name)
{
return static::getByName((string)$name);
}

public static function getByName(string $id)
{
$definitionEntry = new ImportDefinition();
$definitionEntry->setId((int)$id);
$definitionEntry->setId($id);
/**
* @var \Instride\Bundle\DataDefinitionsBundle\Model\ExportDefinition\Dao|\Instride\Bundle\DataDefinitionsBundle\Model\ImportDefinition\Dao
*/
Expand Down

0 comments on commit e374449

Please sign in to comment.