| 1 | <?php |
||
| 12 | class LambdaExpHandler implements ExpHandler |
||
| 13 | { |
||
| 14 | private $lambdaSymbol; |
||
| 15 | /** |
||
| 16 | * @var EnvExtender |
||
| 17 | */ |
||
| 18 | private $envExtender; |
||
| 19 | |||
| 20 | 3 | public function __construct(EnvExtender $envExtender) |
|
| 25 | |||
| 26 | 2 | public function evaluate($exp, Env\EnvInterface $env, Evaluator $evaluate) |
|
| 42 | |||
| 43 | 1 | public function handles($exp): bool |
|
| 47 | } |
This checks looks for assignemnts to variables using the
list(...)function, where not all assigned variables are subsequently used.Consider the following code example.
Only the variables
$aand$care used. There was no need to assign$b.Instead, the list call could have been.