Skip to content

Commit

Permalink
Using ${var} in strings is deprecated, use {$var} instead (#1985)
Browse files Browse the repository at this point in the history
Co-authored-by: Denis Turkov <denis.turkov@spryker.com>
  • Loading branch information
scp and PhilinTv authored Feb 6, 2024
1 parent 6fd10bf commit 1ca6543
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public function preUpdate(AbstractOMBuilder $builder): string
: '\\Propel\\Runtime\\Util\\PropelDateTime::createHighPrecision()';

return 'if ($this->isModified() && !$this->isColumnModified(' . $this->getColumnConstant('update_column', $builder) . ")) {
\$this->" . $this->getColumnSetter('update_column') . "(${valueSource});
\$this->" . $this->getColumnSetter('update_column') . "({$valueSource});
}";
}

Expand All @@ -131,7 +131,7 @@ public function preInsert(AbstractOMBuilder $builder): string
: '$highPrecision';
$script .= "
if (!\$this->isColumnModified(" . $this->getColumnConstant('create_column', $builder) . ")) {
\$this->" . $this->getColumnSetter('create_column') . "(${valueSource});
\$this->" . $this->getColumnSetter('create_column') . "({$valueSource});
}";
}

Expand All @@ -141,7 +141,7 @@ public function preInsert(AbstractOMBuilder $builder): string
: '$highPrecision';
$script .= "
if (!\$this->isColumnModified(" . $this->getColumnConstant('update_column', $builder) . ")) {
\$this->" . $this->getColumnSetter('update_column') . "(${valueSource});
\$this->" . $this->getColumnSetter('update_column') . "({$valueSource});
}";
}

Expand Down

0 comments on commit 1ca6543

Please sign in to comment.