-
-
Notifications
You must be signed in to change notification settings - Fork 154
[WR] Could not resolve ExpressionStatement #96
Copy link
Copy link
Closed
Labels
Description
[2017-08-05T09:23:47.519573+02:00] phpactor.WARNING: Did not know how to resolve node of type "Microsoft\PhpParser\Node\Statement\ExpressionStatement" with text "$locator = $this->serviceLocator;" [] []
<?php
namespace Phpactor\WorseReflection\Reflection;
use Phpactor\WorseReflection\Reflector;
use Microsoft\PhpParser\Node\ClassConstDeclaration;
use Microsoft\PhpParser\Node\ConstElement;
use Microsoft\PhpParser\Node;
use Phpactor\WorseReflection\Type;
use Phpactor\WorseReflection\ServiceLocator;
final class ReflectionConstant extends AbstractReflectedNode
{
/**
* @var ServiceLocator
*/
private $serviceLocator;
/**
* @var ConstElement
*/
private $node;
public function __construct(
ServiceLocator $serviceLocator,
ConstElement $node
)
{
$this->serviceLocator = $serviceLocator;
$this->node = $node;
}
public function name()
{
return $this->node->getName();
}
public function type(): Type
{
$locator = $this->serviceLocator;
return Type::unknown();
}
protected function node(): Node
{
return $this->node;
}
}
Reactions are currently unavailable