Skip to content

Commit

Permalink
Cast method ids to string for compatibility with older Psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
weirdan committed Mar 30, 2020
1 parent 9074932 commit 8c6e830
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hooks/TestCaseHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public static function afterStatementAnalysis(
}

$codebase->methodExists(
$declaring_method_id,
(string) $declaring_method_id,
null,
'PHPUnit\Framework\TestSuite::run'
);
Expand Down Expand Up @@ -195,7 +195,7 @@ public static function afterStatementAnalysis(

// methodExists also can mark methods as used (weird, but handy)
$provider_method_exists = $codebase->methodExists(
$provider_method_id,
(string) $provider_method_id,
$provider_docblock_location,
$declaring_method_id
);
Expand Down

0 comments on commit 8c6e830

Please sign in to comment.