Skip to content

Commit

Permalink
#221 don't parse strings from
Browse files Browse the repository at this point in the history
  • Loading branch information
TRPB committed Feb 2, 2020
1 parent c469eab commit 49fd3e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Parser/Value.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ private function callTransphpormFunctions($token) {
$val = $this->baseData->{$this->last->read()}($token['value']);
$this->result->processValue($val);

if ($this->autoLookup && is_string($val)) {
if ($this->autoLookup && is_string($val) && $this->allowNullResult) {
$parser = new Value($this->data->getData());
$parsedArr = $parser->parse($val);
$parsedVal = isset($parsedArr[0]) ? $parsedArr[0] : null;
Expand Down

0 comments on commit 49fd3e4

Please sign in to comment.