Skip to content

Commit

Permalink
Merge pull request #13 from Jeckel-Lab/bugfix/several-bug-with-typing
Browse files Browse the repository at this point in the history
Remove useless toScalar methods
  • Loading branch information
jeckel committed Dec 18, 2020
2 parents 0548edb + 641b83b commit dbb3eee
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
7 changes: 1 addition & 6 deletions src/Domain/Identity/Identity.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,11 @@ interface Identity extends Equality
{
/**
* IdAbstract constructor.
* @param T|null $id
* @param T $id
* @throws InvalidIdException
*/
public function __construct($id);

/**
* @return string
*/
public function toScalar(): string;

/**
* @return string
*/
Expand Down
7 changes: 0 additions & 7 deletions src/Domain/ValueObject/ValueObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,9 @@
/**
* Interface ValueObject
* @psalm-immutable
* @template T
*/
interface ValueObject
{
/**
* @psalm-return T
* @return T
*/
public function toScalar();

/**
* @return string
*/
Expand Down

0 comments on commit dbb3eee

Please sign in to comment.