Skip to content

Commit

Permalink
remove useless const
Browse files Browse the repository at this point in the history
  • Loading branch information
orklah committed Jan 22, 2022
1 parent 9baa869 commit 6a1a05d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Psalm/Type/Atomic/TClassStringMap.php
Expand Up @@ -34,8 +34,6 @@ class TClassStringMap extends Atomic
*/
public $value_param;

public const KEY = 'class-string-map';

/**
* Constructs a new instance of a list
*/
Expand All @@ -49,7 +47,7 @@ public function __construct(string $param_name, ?TNamedObject $as_type, Union $v
public function getId(bool $exact = true, bool $nested = false): string
{
/** @psalm-suppress MixedOperand */
return static::KEY
return 'class-string-map'
. '<'
. $this->param_name
. ' as '
Expand Down Expand Up @@ -85,7 +83,7 @@ public function toNamespacedString(
}

/** @psalm-suppress MixedOperand */
return static::KEY
return 'class-string-map'
. '<'
. $this->param_name
. ($this->as_type ? ' as ' . $this->as_type : '')
Expand Down

0 comments on commit 6a1a05d

Please sign in to comment.