Skip to content

Commit 310099f

Browse files
BackEndTeaircmaxell
authored andcommitted
Use the imported statement instead of FQN
1 parent 7ba6577 commit 310099f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/Compiler.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
namespace PHPCompiler;
1111

1212
// This is used as a property type, phan is confused.
13-
// @phan-suppress-next-line PhanUnreferencedUseNormal
1413
use SplObjectStorage;
1514
use PHPCfg\Func as CfgFunc;
1615
use PHPCfg\Op;
@@ -26,7 +25,7 @@ class Compiler {
2625
protected ?SplObjectStorage $funcs;
2726

2827
public function compile(Script $script): ?Block {
29-
$this->seen = new \SplObjectStorage;
28+
$this->seen = new SplObjectStorage;
3029

3130
$main = $this->compileCfgBlock($script->main->cfg);
3231

@@ -35,7 +34,7 @@ public function compile(Script $script): ?Block {
3534
}
3635

3736
public function compileFunc(string $name, CfgFunc $func): Func {
38-
$this->seen = new \SplObjectStorage;
37+
$this->seen = new SplObjectStorage;
3938

4039
$funcBlock = $this->compileCfgBlock($func->cfg, $func->params);
4140
$funcBlock->func = $func;

0 commit comments

Comments
 (0)