1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00

Allow mixed in PHP 8 for manipulation

This commit is contained in:
Matt Brown 2020-11-20 18:53:48 -05:00 committed by Daniil Gentili
parent 289a3b220b
commit 1bd087bd0d
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -31,12 +31,12 @@ class TMixed extends \Psalm\Type\Atomic
int $php_major_version,
int $php_minor_version
): ?string {
return null;
return $php_major_version >= 8 ? 'mixed' : null;
}
public function canBeFullyExpressedInPhp(int $php_major_version, int $php_minor_version): bool
{
return false;
return $php_major_version >= 8;
}
public function getAssertionString(): string