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

Remove typehint

This commit is contained in:
Matt Brown 2018-01-08 11:05:29 -05:00
parent 1d91f6efad
commit 65bd144cec
2 changed files with 2 additions and 2 deletions

View File

@ -301,7 +301,7 @@ class ProjectChecker
$debug_output = false, $debug_output = false,
$collect_references = false, $collect_references = false,
$find_references_to = null, $find_references_to = null,
string $reports = null $reports = null
) { ) {
$this->file_provider = $file_provider; $this->file_provider = $file_provider;
$this->cache_provider = $cache_provider; $this->cache_provider = $cache_provider;

View File

@ -850,7 +850,7 @@ class Reconciler
} }
if ($existing_var_type->hasType($new_var_type)) { if ($existing_var_type->hasType($new_var_type)) {
$atomic_type = $existing_var_type->types[$new_var_type]; $atomic_type = clone $existing_var_type->types[$new_var_type];
$atomic_type->from_docblock = false; $atomic_type->from_docblock = false;
return new Type\Union([$atomic_type]); return new Type\Union([$atomic_type]);