Skip to content

StringLiteral: only variables should be passed by reference. #169

@dantleech

Description

@dantleech
                                                             
  [Symfony\Component\Debug\Exception\ContextErrorException]  
  Notice: Only variables should be passed by reference       
                                                             

Exception trace:
 () at /home/daniel/www/phpactor/phpactor/vendor/microsoft/tolerant-php-parser/src/Node/StringLiteral.php:33
 Microsoft\PhpParser\Node\StringLiteral->getStringContentsText() at /home/daniel/www/phpactor/phpactor/vendor/phpactor/worse-reflection/lib/Core/Reflection/Inference/NodeValueResolver.php:105
 Phpactor\WorseReflection\Core\Reflection\Inference\NodeValueResolver->_resolveNode() at /home/daniel/www/phpactor/phpactor/vendor/phpactor/worse-reflection/lib/Core/Reflection/Inference/Node

Triggered when StringLitreal passes the method call fileGetContents to the getFullText of a Token object, which unlike the Node object accepts a reference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions