Skip to content

Analysis fails with Uncaught Error: Call to a member function toCodeString() #3

@asterite3

Description

@asterite3

Running analysis failed with exception Fatal error: Uncaught Error: Call to a member function toCodeString() on null in /php-chain/lib/ClassMethod.php:46. Ouput with stack trace is:

...
Parsed
...
Fatal error: Uncaught Error: Call to a member function toCodeString() on null in /php-chain/lib/ClassMethod.php:46
Stack trace:
#0 [internal function]: PhpChain\ClassMethod->__toString()
#1 [internal function]: RegexIterator->accept()
#2 [internal function]: FilterIterator->rewind()
#3 /php-chain/lib/ProjectKnowledge.php(98): AppendIterator->append(Object(RegexIterator))
#4 /php-chain/lib/ChainBuilder.php(93): PhpChain\ProjectKnowledge->getFunctionLikeByCall(Object(PhpChain\ExprCall\MethodCall), true)
#5 /php-chain/lib/ChainBuilder.php(118): PhpChain\ChainBuilder->findCritical(Object(PhpChain\Chain), 2)
#6 /php-chain/lib/ChainBuilder.php(142): PhpChain\ChainBuilder->findCritical(Object(PhpChain\Chain), 1)
#7 /php-chain/build_chains.php(7): PhpChain\ChainBuilder->findAllChains(8)
#8 /php-chain/analyze.php(3): require_once('/php-chain/buil...')
#9 {main}
  thrown in /php-chain/lib/ClassMethod.php on line 46

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions