Skip to content

Instantly share code, notes, and snippets.

@sergix44
Created January 20, 2026 16:10
Show Gist options
  • Select an option

  • Save sergix44/3a1a447d248faab2b86ed01ebda7f63c to your computer and use it in GitHub Desktop.

Select an option

Save sergix44/3a1a447d248faab2b86ed01ebda7f63c to your computer and use it in GitHub Desktop.
--- src/Phan/Language/Type/IntersectionType.php
+++ src/Phan/Language/Type/IntersectionType.php
@@ -804,5 +804,5 @@
public function isCallable(CodeBase $code_base): bool
{
- return $this->anyTypePartsMatchMethod(__FUNCTION__);
+ return $this->anyTypePartsMatchMethodWithArgs(__FUNCTION__, $code_base);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment