pull/1/head
韩天峰 5 months ago
parent d49d8578c5
commit f179705296
  1. 2
      src/Php/AstNodeType.php
  2. 1
      src/Php/CompilerBase.php
  3. 1
      src/Php/Context/FunctionContext.php

@ -140,6 +140,6 @@ trait AstNodeType
protected function isEmptyArray(NodeAbstract $expr): bool
{
return $expr instanceof Node\Expr\Array_ && count($expr->items) === 0;
return $expr instanceof Expr\Array_ && count($expr->items) === 0;
}
}

@ -11,7 +11,6 @@ namespace PhpAot\Php;
use League\CLImate\CLImate;
use PhpAot\Php\Context\FunctionContext;
use PhpAot\Php\Entity\ClassDef;
use PhpAot\Php\Entity\ConstantDef;
use PhpAot\Php\Entity\FunctionDef;
use PhpAot\Php\Entity\InterfaceDef;
use PhpAot\Php\Entity\MethodDef;

@ -16,6 +16,7 @@ class FunctionContext
public array $objects = [];
public array $localVars = [];
public array $staticVars = [];
/**
* @var array<string, string>
*/

Loading…
Cancel
Save