Skip to content

Commit 1ca6543

Browse files
scpPhilinTv
andauthored
Using ${var} in strings is deprecated, use {$var} instead (#1985)
Co-authored-by: Denis Turkov <[email protected]>
1 parent 6fd10bf commit 1ca6543

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Propel/Generator/Behavior/Timestampable/TimestampableBehavior.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function preUpdate(AbstractOMBuilder $builder): string
106106
: '\\Propel\\Runtime\\Util\\PropelDateTime::createHighPrecision()';
107107

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

@@ -131,7 +131,7 @@ public function preInsert(AbstractOMBuilder $builder): string
131131
: '$highPrecision';
132132
$script .= "
133133
if (!\$this->isColumnModified(" . $this->getColumnConstant('create_column', $builder) . ")) {
134-
\$this->" . $this->getColumnSetter('create_column') . "(${valueSource});
134+
\$this->" . $this->getColumnSetter('create_column') . "({$valueSource});
135135
}";
136136
}
137137

@@ -141,7 +141,7 @@ public function preInsert(AbstractOMBuilder $builder): string
141141
: '$highPrecision';
142142
$script .= "
143143
if (!\$this->isColumnModified(" . $this->getColumnConstant('update_column', $builder) . ")) {
144-
\$this->" . $this->getColumnSetter('update_column') . "(${valueSource});
144+
\$this->" . $this->getColumnSetter('update_column') . "({$valueSource});
145145
}";
146146
}
147147

0 commit comments

Comments
 (0)