Skip to content

Commit

Permalink
Merge branch '1.8' into 1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
dvesh3 committed Nov 24, 2023
2 parents 55b5e58 + dc287c1 commit 4f72e3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ parameters:
- phpstan-bootstrap.php
excludePaths:
- src/Command/DummyDataCommand.php
- src/Command/ParallelizationAbstractCommand.php

includes:
- phpstan-baseline.neon
4 changes: 3 additions & 1 deletion src/Mapping/DataTarget/Direct.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ public function assignData(ElementInterface $element, $data): void
{
$setterParts = explode('.', $this->fieldName);

if (count($setterParts) === 1) {
if ($this->fieldName === 'key') {
$this->doAssignData($element, $this->fieldName, $data);
} elseif (count($setterParts) === 1) {
//direct class attribute
$getter = 'get' . ucfirst($this->fieldName);
if (!$this->checkAssignData($data, $element, $getter)) {
Expand Down

0 comments on commit 4f72e3b

Please sign in to comment.