You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[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;
}
}
Activity
dantleech commentedon Aug 7, 2017
Happens on the semi-colon....
dantleech commentedon Aug 12, 2017
We don't care about this I think.
2021-01-10
2021-01-10 (#1173)
Master 17 (#1203)