Skip to content

Commit

Permalink
SDK-5412: Extend class constant modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
DmytroKlymanSpryker committed Nov 8, 2023
1 parent 357951b commit 7c359e8
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ public function setConstant(

if ($isLiteral) {
$value = $this->parseSingleValue((string)$value);
} else if (is_array($value)) {
foreach ($value as $idx => $val) {
if (!is_string($val) || strpos($val, '::') === false) {
continue;
}

$value[$idx] = $this->parseSingleValue($val);
}
}

$visitors = [
Expand Down

0 comments on commit 7c359e8

Please sign in to comment.