1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00
psalm/lib/ClosureChecker.php
2016-02-04 09:22:46 -05:00

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);
}
}