Skip to content

Commit 5634e76

Browse files
committed
fixup! chore: Cleanup methods to parse/transform values
1 parent ca3e986 commit 5634e76

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/Db/RowCellSuper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ public static function fromRowData(array $row): RowCellSuper {
4545
$instance = new static();
4646

4747
foreach ($row as $key => $value) {
48-
$prop = ucfirst($instance->columnToProperty($key));
49-
$setter = 'set' . $prop;
50-
if (method_exists($instance, $setter)) {
48+
$property = $instance->columnToProperty($key);
49+
$setter = 'set' . ucfirst($property);;
50+
if (property_exists($instance, $property)) {
5151
$instance->$setter($value);
5252
}
5353
}

0 commit comments

Comments
 (0)