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

Add params required for 7.1

This commit is contained in:
Brown 2020-02-27 18:56:25 -05:00
parent d315822bfa
commit 748abaf02a
41 changed files with 41 additions and 41 deletions

View File

@ -259,7 +259,7 @@ abstract class Atomic
/**
* @return string
*/
abstract public function getKey();
abstract public function getKey(bool $include_extra = true);
/**
* @return bool

View File

@ -296,7 +296,7 @@ class ObjectLike extends \Psalm\Type\Atomic
/**
* @return string
*/
public function getKey()
public function getKey(bool $include_extra = true)
{
/** @var string */
return static::KEY;

View File

@ -32,7 +32,7 @@ class TArray extends \Psalm\Type\Atomic
/**
* @return string
*/
public function getKey()
public function getKey(bool $include_extra = true)
{
return 'array';
}

View File

@ -11,7 +11,7 @@ class TArrayKey extends Scalar
/**
* @return string
*/
public function getKey()
public function getKey(bool $include_extra = true)
{
return 'array-key';
}

View File

@ -11,7 +11,7 @@ class TAssertionFalsy extends \Psalm\Type\Atomic
/**
* @return string
*/
public function getKey()
public function getKey(bool $include_extra = true)
{
return 'falsy';
}

View File

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

View File

@ -11,7 +11,7 @@ class TCallableObject extends TObject
/**
* @return string
*/
public function getKey()
public function getKey(bool $include_extra = true)
{
return 'callable-object';
}

View File

@ -6,7 +6,7 @@ class TCallableString extends TString
/**
* @return string
*/
public function getKey()
public function getKey(bool $include_extra = true)
{
return 'callable-string';
}

View File

@ -29,7 +29,7 @@ class TClassString extends TString
/**
* @return string
*/
public function getKey()
public function getKey(bool $include_extra = true)
{
return 'class-string' . ($this->as === 'object' ? '' : '<' . $this->as_type . '>');
}

View File

@ -133,7 +133,7 @@ class TClassStringMap extends \Psalm\Type\Atomic
/**
* @return string
*/
public function getKey()
public function getKey(bool $include_extra = true)
{
return 'array';
}

View File

@ -14,7 +14,7 @@ class TClosedResource extends \Psalm\Type\Atomic
/**
* @return string
*/
public function getKey()
public function getKey(bool $include_extra = true)
{
return 'closed-resource';
}

View File

@ -11,7 +11,7 @@ class TEmpty extends Scalar
/**
* @return string
*/
public function getKey()
public function getKey(bool $include_extra = true)
{
return 'empty';
}

View File

@ -11,7 +11,7 @@ class TFalse extends TBool
/**
* @return string
*/
public function getKey()
public function getKey(bool $include_extra = true)
{
return 'false';
}

View File

@ -11,7 +11,7 @@ class TFloat extends Scalar
/**
* @return string
*/
public function getKey()
public function getKey(bool $include_extra = true)
{
return 'float';
}

View File

@ -6,7 +6,7 @@ class THtmlEscapedString extends TString
/**
* @return string
*/
public function getKey()
public function getKey(bool $include_extra = true)
{
return 'html-escaped-string';
}

View File

@ -11,7 +11,7 @@ class TInt extends Scalar
/**
* @return string
*/
public function getKey()
public function getKey(bool $include_extra = true)
{
return 'int';
}

View File

@ -27,7 +27,7 @@ class TKeyOfClassConstant extends Scalar
/**
* @return string
*/
public function getKey()
public function getKey(bool $include_extra = true)
{
return 'key-of<' . $this->fq_classlike_name . '::' . $this->const_name . '>';
}

View File

@ -103,7 +103,7 @@ class TList extends \Psalm\Type\Atomic
/**
* @return string
*/
public function getKey()
public function getKey(bool $include_extra = true)
{
return 'array';
}

View File

@ -26,7 +26,7 @@ class TLiteralClassString extends TLiteralString
/**
* @return string
*/
public function getKey()
public function getKey(bool $include_extra = true)
{
return 'class-string(' . $this->value . ')';
}

View File

@ -17,7 +17,7 @@ class TLiteralFloat extends TFloat
/**
* @return string
*/
public function getKey()
public function getKey(bool $include_extra = true)
{
return 'float(' . $this->value . ')';
}

View File

@ -17,7 +17,7 @@ class TLiteralInt extends TInt
/**
* @return string
*/
public function getKey()
public function getKey(bool $include_extra = true)
{
return 'int(' . $this->value . ')';
}

View File

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

View File

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

View File

@ -22,7 +22,7 @@ class TMixed extends \Psalm\Type\Atomic
/**
* @return string
*/
public function getKey()
public function getKey(bool $include_extra = true)
{
return 'mixed';
}

View File

@ -11,7 +11,7 @@ class TNever extends \Psalm\Type\Atomic
/**
* @return string
*/
public function getKey()
public function getKey(bool $include_extra = true)
{
return 'never-return';
}

View File

@ -11,7 +11,7 @@ class TNull extends \Psalm\Type\Atomic
/**
* @return string
*/
public function getKey()
public function getKey(bool $include_extra = true)
{
return 'null';
}

View File

@ -11,7 +11,7 @@ class TNumeric extends Scalar
/**
* @return string
*/
public function getKey()
public function getKey(bool $include_extra = true)
{
return 'numeric';
}

View File

@ -6,7 +6,7 @@ class TNumericString extends TString
/**
* @return string
*/
public function getKey()
public function getKey(bool $include_extra = true)
{
return 'numeric-string';
}

View File

@ -11,7 +11,7 @@ class TObject extends \Psalm\Type\Atomic
/**
* @return string
*/
public function getKey()
public function getKey(bool $include_extra = true)
{
return 'object';
}

View File

@ -14,7 +14,7 @@ class TResource extends \Psalm\Type\Atomic
/**
* @return string
*/
public function getKey()
public function getKey(bool $include_extra = true)
{
return 'resource';
}

View File

@ -11,7 +11,7 @@ class TScalar extends Scalar
/**
* @return string
*/
public function getKey()
public function getKey(bool $include_extra = true)
{
return 'scalar';
}

View File

@ -25,7 +25,7 @@ class TScalarClassConstant extends Scalar
/**
* @return string
*/
public function getKey()
public function getKey(bool $include_extra = true)
{
return 'scalar-class-constant(' . $this->fq_classlike_name . '::' . $this->const_name . ')';
}

View File

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

View File

@ -31,7 +31,7 @@ class TTemplateIndexedAccess extends \Psalm\Type\Atomic
/**
* @return string
*/
public function getKey()
public function getKey(bool $include_extra = true)
{
return $this->array_param_name . '[' . $this->offset_param_name . ']';
}

View File

@ -33,7 +33,7 @@ class TTemplateKeyOf extends TArrayKey
/**
* @return string
*/
public function getKey()
public function getKey(bool $include_extra = true)
{
return 'key-of<' . $this->param_name . '>';
}

View File

@ -38,7 +38,7 @@ class TTemplateParamClass extends TClassString
/**
* @return string
*/
public function getKey()
public function getKey(bool $include_extra = true)
{
return 'class-string<' . $this->param_name . '>';
}

View File

@ -6,7 +6,7 @@ class TTraitString extends TString
/**
* @return string
*/
public function getKey()
public function getKey(bool $include_extra = true)
{
return 'trait-string';
}

View File

@ -11,7 +11,7 @@ class TTrue extends TBool
/**
* @return string
*/
public function getKey()
public function getKey(bool $include_extra = true)
{
return 'true';
}

View File

@ -22,7 +22,7 @@ class TValueOfClassConstant extends \Psalm\Type\Atomic
/**
* @return string
*/
public function getKey()
public function getKey(bool $include_extra = true)
{
return 'value-of<' . $this->fq_classlike_name . '::' . $this->const_name . '>';
}

View File

@ -11,7 +11,7 @@ class TVoid extends \Psalm\Type\Atomic
/**
* @return string
*/
public function getKey()
public function getKey(bool $include_extra = true)
{
return 'void';
}

View File

@ -6,7 +6,7 @@ class TSqlSelectString extends \Psalm\Type\Atomic\TLiteralString
/**
* @return string
*/
public function getKey()
public function getKey(bool $include_extra = true)
{
return 'sql-select-string';
}