mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
Always be cloning
This commit is contained in:
parent
b340f2b0ce
commit
08594cf712
@ -328,7 +328,7 @@ class ReturnTypeCollector
|
||||
$generator_type = new Atomic\TGenericObject(
|
||||
'Generator',
|
||||
[
|
||||
$key_type ?: Type::getInt(),
|
||||
$key_type ? clone $key_type : Type::getInt(),
|
||||
clone $value_type,
|
||||
Type::getMixed(),
|
||||
Type::getMixed()
|
||||
|
@ -1933,7 +1933,7 @@ class ExpressionAnalyzer
|
||||
if ($expression_atomic_type instanceof Type\Atomic\TGenericObject) {
|
||||
$yield_type = PropertyFetchAnalyzer::localizePropertyType(
|
||||
$codebase,
|
||||
$yield_type,
|
||||
clone $yield_type,
|
||||
$expression_atomic_type,
|
||||
$classlike_storage,
|
||||
$classlike_storage
|
||||
|
Loading…
Reference in New Issue
Block a user