mirror of
https://github.com/danog/psalm.git
synced 2024-12-02 09:37:59 +01:00
18 lines
281 B
PHP
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();
|
|
}
|
|
}
|