mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +01:00
Add more info for plugin
This commit is contained in:
parent
d2ae36296f
commit
c4f45b0f1a
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user