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:
parent
8737abf3b8
commit
4ffdbe0a21
@ -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
|
||||
{
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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';
|
||||
}
|
||||
|
@ -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';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user