mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
19 lines
299 B
PHP
19 lines
299 B
PHP
<?php
|
|
|
|
namespace CodeInspector;
|
|
|
|
use PhpParser;
|
|
|
|
class ClosureChecker extends FunctionChecker
|
|
{
|
|
public function check()
|
|
{
|
|
$use_vars = [];
|
|
foreach ($this->_function->uses as $use) {
|
|
$use_vars[$use->var] = true;
|
|
}
|
|
|
|
parent::check($use_vars);
|
|
}
|
|
}
|