Skip to content

Commit

Permalink
Temporaryly revert "Fix language server first-class callable crashes"
Browse files Browse the repository at this point in the history
This reverts commit c8393bd.

I want to see if CI fails
  • Loading branch information
weirdan committed Feb 19, 2023
1 parent d4a57c8 commit d9a9f75
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,6 @@ private static function handleNamedFunction(
= $function_call_info->is_stubbed || $function_call_info->in_call_map || $namespaced_function_exists;

if ($function_call_info->function_exists
&& !$stmt->isFirstClassCallable()
&& $codebase->store_node_types
&& !$context->collect_initializations
&& !$context->collect_mutations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ public static function analyze(
}

if ($codebase->store_node_types
&& !$stmt->isFirstClassCallable()
&& !$context->collect_initializations
&& !$context->collect_mutations
) {
Expand Down Expand Up @@ -227,7 +226,6 @@ public static function analyze(
}

if ($codebase->store_node_types
&& !$stmt->isFirstClassCallable()
&& !$context->collect_initializations
&& !$context->collect_mutations
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,6 @@ private static function handleNamedCall(
$cased_method_id = $fq_class_name . '::' . $stmt_name->name;

if ($codebase->store_node_types
&& !$stmt->isFirstClassCallable()
&& !$context->collect_initializations
&& !$context->collect_mutations
) {
Expand Down

0 comments on commit d9a9f75

Please sign in to comment.