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

18 lines
281 B
PHP
Raw Normal View History

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