Skip to content
Permalink
Browse files

Allow file path to be passed into methodExists

  • Loading branch information...
muglug committed Apr 17, 2019
1 parent 4a93177 commit 01f005290ed432cebb0a80c54ad233e55292b456
Showing with 13 additions and 3 deletions.
  1. +13 −3 src/Psalm/Codebase.php
@@ -728,9 +728,19 @@ public function traitHasCorrectCase($fq_trait_name)
*
* @return bool
*/
public function methodExists($method_id, CodeLocation $code_location = null, $calling_method_id = null)
{
return $this->methods->methodExists($method_id, $calling_method_id, $code_location);
public function methodExists(
string $method_id,
CodeLocation $code_location = null,
$calling_method_id = null,
string $file_path = null
) {
return $this->methods->methodExists(
$method_id,
$calling_method_id,
$code_location,
null,
$file_path
);
}
/**

0 comments on commit 01f0052

Please sign in to comment.
You can’t perform that action at this time.