Skip to content

Commit

Permalink
Fix inherited constructor contextual inference
Browse files Browse the repository at this point in the history
  • Loading branch information
klimick committed Jun 29, 2024
1 parent b5a0455 commit 7847dd6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,9 @@ private static function analyzeNamedConstructor(
: null;

$collected_argument_templates = new CollectedArgumentTemplates(
template_types: $storage->template_types ?? [],
template_types: $method_storage !== null && $method_storage->defining_fqcln !== null
? $codebase->classlikes->getStorageFor($method_storage->defining_fqcln)?->template_types ?? []
: $storage->template_types ?? [],
lower_bounds: [],
);

Expand Down

0 comments on commit 7847dd6

Please sign in to comment.