1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

Add more info for plugin

This commit is contained in:
Matthew Brown 2017-05-05 00:06:46 -04:00
parent d2ae36296f
commit c4f45b0f1a
2 changed files with 3 additions and 1 deletions

View File

@ -418,7 +418,7 @@ abstract class ClassLikeChecker extends SourceChecker implements StatementsSourc
$code_location = new CodeLocation($this->source, $this->class, true);
foreach ($plugins as $plugin) {
if ($plugin->visitClassLike($this, $storage, $code_location) === false) {
if ($plugin->visitClassLike($this, $this->class, $storage, $code_location) === false) {
return false;
}
}

View File

@ -51,11 +51,13 @@ abstract class Plugin
/**
* @param ClassLikeChecker $statements_checker
* @param ClassLikeStorage $storage
* @param PhpParser\Node\Stmt\ClassLike $stmt
* @param CodeLocation $code_location
* @return null|false
*/
public function visitClassLike(
ClassLikeChecker $statements_checker,
PhpParser\Node\Stmt\ClassLike $stmt,
ClassLikeStorage $storage,
CodeLocation $code_location
) {