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:
parent
289a3b220b
commit
1bd087bd0d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user