Skip to content

Commit

Permalink
ErrorType - lock down constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed May 6, 2020
1 parent 5593300 commit cc1c23e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Type/ErrorType.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
class ErrorType extends MixedType
{

public function __construct()
{
parent::__construct();
}

public function describe(VerbosityLevel $level): string
{
return $level->handle(
Expand Down Expand Up @@ -35,6 +40,11 @@ public function subtract(Type $type): Type
return new self();
}

public function equals(Type $type): bool
{
return $type instanceof self;
}

/**
* @param mixed[] $properties
* @return Type
Expand Down

0 comments on commit cc1c23e

Please sign in to comment.