1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00
psalm/lib/ClosureChecker.php
2016-01-07 18:37:07 -05:00

18 lines
281 B
PHP

<?php
namespace CodeInspector;
use \PhpParser;
class ClosureChecker extends FunctionChecker
{
public function check()
{
foreach ($this->_function->uses as $use) {
$this->_declared_variables[$use->var] = 1;
}
parent::check();
}
}