Skip to content

Commit

Permalink
Revert " [Php81] Skip execution operator on NullToStrictStringFuncCal…
Browse files Browse the repository at this point in the history
…lArgRect…" (#5668)

This reverts commit b95ff29.
  • Loading branch information
samsonasik committed Feb 28, 2024
1 parent b95ff29 commit 04e62d3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.

This file was deleted.

Expand Up @@ -11,7 +11,6 @@
use PhpParser\Node\Expr\ConstFetch;
use PhpParser\Node\Expr\FuncCall;
use PhpParser\Node\Expr\MethodCall;
use PhpParser\Node\Expr\ShellExec;
use PhpParser\Node\Identifier;
use PhpParser\Node\Scalar\Encapsed;
use PhpParser\Node\Scalar\String_;
Expand Down Expand Up @@ -175,10 +174,6 @@ private function processNullToStrictStringOnNodePosition(

$argValue = $args[$position]->value;

if ($argValue instanceof ShellExec) {
return null;
}

if ($argValue instanceof ConstFetch && $this->valueResolver->isNull($argValue)) {
$args[$position]->value = new String_('');
$funcCall->args = $args;
Expand Down

0 comments on commit 04e62d3

Please sign in to comment.