Skip to content

Commit

Permalink
Add flagfrom_calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Jan 24, 2022
1 parent 9f84da4 commit c4c11a7
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -99,9 +99,9 @@ public static function fetch(
&& $premixin_method_id->fq_class_name !== Exception::class
&& in_array(Throwable::class, $class_storage->class_implements)) {
if ($premixin_method_id->fq_class_name === PDOException::class) {
return Type::getString();
return Type::getString(true); // TODO: Remove the flag in Psalm 5
} else {
return Type::getInt();
return Type::getInt(true); // TODO: Remove the flag in Psalm 5
}
}

Expand Down

0 comments on commit c4c11a7

Please sign in to comment.