1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-02 09:37:59 +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();
}
}