1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Fix some signatures

This commit is contained in:
Brown 2020-09-07 16:00:04 -04:00
parent 8737abf3b8
commit 4ffdbe0a21
4 changed files with 4 additions and 16 deletions

View File

@ -286,10 +286,7 @@ abstract class Atomic implements TypeNode
return new TNamedObject($value);
}
/**
* @return string
*/
abstract public function getKey(bool $include_extra = true);
abstract public function getKey(bool $include_extra = true) : string;
public function isNumericType(): bool
{

View File

@ -15,10 +15,7 @@ class TLiteralString extends TString
$this->value = $value;
}
/**
* @return string
*/
public function getKey(bool $include_extra = true)
public function getKey(bool $include_extra = true) : string
{
return $this->getId();
}

View File

@ -8,10 +8,7 @@ class TString extends Scalar
return 'string';
}
/**
* @return string
*/
public function getKey(bool $include_extra = true)
public function getKey(bool $include_extra = true) : string
{
return 'string';
}

View File

@ -3,10 +3,7 @@ namespace Psalm\Test\Config\Plugin\Hook\StringProvider;
class TSqlSelectString extends \Psalm\Type\Atomic\TLiteralString
{
/**
* @return string
*/
public function getKey(bool $include_extra = true)
public function getKey(bool $include_extra = true) : string
{
return 'sql-select-string';
}