Are you sure the assignment to $result is correct as $this->executeCode(trim(...($command), ';') . ';') (which targets Recca0120\Terminal\Conso...anTinker::executeCode()) seems to always return null.
This check looks for function or method calls that always return null and whose
return value is assigned to a variable.
It is generally not recommended to use eval unless absolutely required.
On one hand, eval might be exploited by malicious users if they somehow manage
to inject dynamic content. On the other hand, with the emergence of faster PHP runtimes
like the HHVM, eval prevents some optimization that they perform.
It is generally not recommended to use eval unless absolutely required.
On one hand, eval might be exploited by malicious users if they somehow manage
to inject dynamic content. On the other hand, with the emergence of faster PHP runtimes
like the HHVM, eval prevents some optimization that they perform.
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()
can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.